Re: psql: add \pset true/false

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: psql: add \pset true/false
Дата
Msg-id CAM-w4HOxmbfjNFBwBAd2=eZnqgJO5EHpZ9857eyMPRE5uhD-RQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: psql: add \pset true/false  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: psql: add \pset true/false  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
On Wed, Oct 28, 2015 at 10:52 PM, Robert Haas <robertmhaas@gmail.com> wrote:
> 3. I really don't want to end up with a bunch of features of this type
> for a variety of different data types.

We already have \pset null which feels very similar. It's not like 'f'
and 't' are terribly common and probably different from how they
render in whatever driver the user's probably coding to.

On the other hand if their driver isn't mapping booleans to a native
data type and just providing the Postgres text output then then this
is only risking more confusion by presenting the user with a rendering
that's different from what they need to be expecting. IIRC this is the
case for the PHP driver for example.

-- 
greg



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: psql: add \pset true/false
Следующее
От: Andres Freund
Дата:
Сообщение: Re: psql: add \pset true/false