Fwd: PATCH: psql boolean display

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Fwd: PATCH: psql boolean display
Дата
Msg-id CAFj8pRBvgKCuVXwXg=ry=hSQ7Q7KgWMQ-foV1A1V2zycv2eozQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Fwd: PATCH: psql boolean display  (Phil Sorber <phil@omniti.com>)
Список pgsql-hackers
---------- Forwarded message ----------
From: Pavel Stehule <pavel.stehule@gmail.com>
Date: 2012/9/1
Subject: PATCH: psql boolean display
To: Phil Sorber <phil@omniti.com>


Hello

I am looking to your patch:

I have only one note. I don't think so using any text for values
"true" and "false" is good idea. I don't see a sense of any special
texts like "foo", "bar" from your example.

More strict design is better - I wrote simple modification - it is
based on psql psets - and it add new configuration settings "boolstyle
[char|word]". A advantage of this design is consistency  and possible
autocomplete support.

Regards

Pavel



postgres=> select true, false;
 bool │ bool
──────┼──────
 t    │ f
(1 row)

postgres=> \pset boolstyle word
Bool output style is word.
postgres=> select true, false;
 bool │ bool
──────┼───────
 true │ false
(1 row)

Вложения

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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Yet another failure mode in pg_upgrade
Следующее
От: Sergey Koposov
Дата:
Сообщение: bitmap scan much slower than index scan, hash_search_with_hash_value