Re: Binary data type with other output method

Поиск
Список
Период
Сортировка
От imad
Тема Re: Binary data type with other output method
Дата
Msg-id 1f30b80c0712250912q178e725eha365f9bc6cd56b44@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Binary data type with other output method  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: Binary data type with other output method
Список pgsql-hackers
If you reduce your code you will have to leverage the bool data type.

Why dont you provide a cast, I dont see an overhead in typbyval datatypes.


On Dec 25, 2007 9:10 PM, Andrew Dunstan <andrew@dunslane.net> wrote:
>
>
> Andreas 'ads' Scherbaum wrote:
> > Hello all,
> >
> > 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.
>
> cheers
>
> andrew
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>


--Imad


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

Предыдущее
От: "Usama Dar"
Дата:
Сообщение: Re: timetz range check issue
Следующее
От: "Gokulakannan Somasundaram"
Дата:
Сообщение: Re: Proposal for Null Bitmap Optimization(for TrailingNULLs)