Re: Binary data type with other output method - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: Binary data type with other output method
Date
Msg-id 47712B71.3080001@dunslane.net
Whole thread Raw
In response to Binary data type with other output method  (Andreas 'ads' Scherbaum <adsmail@wars-nicht.de>)
Responses Re: Binary data type with other output method  (imad <immaad@gmail.com>)
Re: Binary data type with other output method  (Andreas 'ads' Scherbaum <adsmail@wars-nicht.de>)
List pgsql-hackers

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


pgsql-hackers by date:

Previous
From: Andreas 'ads' Scherbaum
Date:
Subject: Binary data type with other output method
Next
From: "Usama Dar"
Date:
Subject: Re: timetz range check issue