Re: Output format revisited - booleans

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: Output format revisited - booleans
Дата
Msg-id 20020924090813.GC21640@svana.org
обсуждение исходный текст
Ответ на Output format revisited - booleans  (Garo Hussenjian <garo@xapnet.com>)
Список pgsql-general
On Mon, Sep 23, 2002 at 06:43:39PM -0700, Garo Hussenjian wrote:
> Is it possible to configure a boolean to output 1/0 rather than t/f by
> default?

I don't know for sure, but there are several functions in pg_proc, not listed by \df. They (I beleive) cover these
functions. For example, there are two functions:

      Result data type       |          Name          | Argument data types
-----------------------------+------------------------+---------------------
 boolean                     | boolin                 |
 integer                     | boolout                |

I don't know what they do however. Maybe you can look at the code?

--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> There are 10 kinds of people in the world, those that can do binary
> arithmetic and those that can't.

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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: State of Replication?
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: pg_attribute