Re: Binary data type with other output method

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Andreas 'ads' Scherbaum <adsmail(at)wars-nicht(dot)de>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Binary data type with other output method
Date: 2007-12-25 16:10:25
Message-ID: 47712B71.3080001@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Usama Dar 2007-12-25 16:57:42 Re: timetz range check issue
Previous Message Andreas 'ads' Scherbaum 2007-12-25 10:33:03 Binary data type with other output method