From: Bruno Wolff III <bruno@wolff.to>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Markus Bertheau ??? <twanger@bluetwanger.de>
Cc: Michael Glaesemann <grzm@myrealbox.com>
Cc: PostgreSQL <pgsql-sql@postgresql.org>
Subject: Re: 'true'::TEXT::BOOLEAN
Date: Fri, 3 Jun 2005 10:36:59 -0500
Message-ID: <20050603153659.GA12878@wolff.to> (raw)
In-Reply-To: <5276.1117812482@sss.pgh.pa.us>
References: <Pine.LNX.4.44.0506031420340.23350-100000@matrix.gatewaynet.com>
<1117799555.9816.24.camel@dicaprio.akademie1.de>
<3DCEDE55-9D4A-4F4E-8907-ADCC058A3398@myrealbox.com>
<1117801417.9816.28.camel@dicaprio.akademie1.de>
<20050603151125.GA10971@wolff.to>
<5276.1117812482@sss.pgh.pa.us>
On Fri, Jun 03, 2005 at 11:28:02 -0400,
Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> That won't actually work either, because boolin wants cstring:
Thanks for pointing that out. I was actually surprised to see my test work,
since I knew boolin expected cstring. I forgot that by not providing a type
strings get treated specially.
> There's been discussion of allowing all datatypes to be explicitly
> casted to or from text by generating conversions like these
> automatically. But I'm not sure if everyone's convinced it's a good
> idea or not. You'd also have to argue about whether varchar should
> be included in the special dispensation ...
I don't remember ever running accross documentation on how to solve this
problem. Even something noting that most of the type input and output
functions are named typein and typeout and that to convert to text you can
use textin(typeout(typevalue)) and to convert from text you can use
typein(textout(text)) would probably be good enough.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: bruno@wolff.to, tgl@sss.pgh.pa.us, twanger@bluetwanger.de, grzm@myrealbox.com
Subject: Re: 'true'::TEXT::BOOLEAN
In-Reply-To: <20050603153659.GA12878@wolff.to>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox