Re: Binary data type with other output method

Поиск
Список
Период
Сортировка
От Andreas 'ads' Scherbaum
Тема Re: Binary data type with other output method
Дата
Msg-id 20071225232141.795e0390@iridium.wars-nicht.de
обсуждение исходный текст
Ответ на Re: Binary data type with other output method  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: Binary data type with other output method  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
Hello,

On Tue, 25 Dec 2007 11:10:25 -0500 Andrew Dunstan wrote:

> Andreas 'ads' Scherbaum wrote:
> >
> > i'm in the need to create a boolean datatype which returns an integer
> > instead of the usual 't'/'f'. Before anyone starts to point me at
> > casts: it's a lot overhead to cast some hundred occurances beside the
> > source of trouble, if you forget one.
> >   
> Do you really need a new datatype or just to change the output behaviour 
> of the inbuilt type? That should be quite easy to do in just a few lines 
> of code.

Just another output behavior would be enough ... but without changing
the PG source itself. Since the package comes with the distribution,
there's no way to build PG from source.


Kind regads

--             Andreas 'ads' Scherbaum
German PostgreSQL User Group


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

Предыдущее
От: "Gokulakannan Somasundaram"
Дата:
Сообщение: Re: Proposal for Null Bitmap Optimization(for TrailingNULLs)
Следующее
От: Andreas 'ads' Scherbaum
Дата:
Сообщение: Re: Binary data type with other output method