psql: add \pset true/false

Поиск
Список
Период
Сортировка
От Marko Tiikkaja
Тема psql: add \pset true/false
Дата
Msg-id 56308F56.8060908@joh.to
обсуждение исходный текст
Ответы Re: psql: add \pset true/false  (Robert Haas <robertmhaas@gmail.com>)
Re: psql: add \pset true/false  ("Daniel Verite" <daniel@manitou-mail.org>)
Re: psql: add \pset true/false  (Vik Fearing <vik@2ndquadrant.fr>)
Список pgsql-hackers
Hello hello,

Since the default t/f output for booleans is not very user friendly,
attached is a patch which enables you to do for example the following:

=# \pset true TRUE
Boolean TRUE display is "TRUE".
=# \pset false FALSE
Boolean FALSE display is "FALSE".
=# select true, false;
   bool | bool
------+-------
   TRUE | FALSE
(1 row)


(For anyone reviewing: I didn't touch the parts of describe.c which do
this for nullPrint:

   myopt.nullPrint = NULL;

since I thought it was dubious in the first place, and I don't think we
output booleans in the describe commands.)



.m

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Victor Wagner
Дата:
Сообщение: Re: Patch: Implement failover on libpq connect level.
Следующее
От: Andres Freund
Дата:
Сообщение: Add EXTRA_CFLAGS to configure