Re: quote_boolean() and friends missing

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Markus Bertheau ☭ <twanger(at)bluetwanger(dot)de>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: quote_boolean() and friends missing
Date: 2005-06-20 14:43:12
Message-ID: 6920.1119278592@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Markus Bertheau =?UTF-8?Q?=E2=98=AD?= <twanger(at)bluetwanger(dot)de> writes:
>> Just assign the value to a text variable and then use quote_literal.

> Isn't that a workaround? Or is that the way such things are done in
> plpgsql?

It's the way it's done --- plpgsql does this by invoking the datatype
output function and then the text input function. There has been talk
of formalizing that in other contexts by making an explicit cast to text
do that for every datatype, but nothing's been done about it yet.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-06-20 14:48:07 Re: [PATCHES] default database creation with initdb
Previous Message Andreas Pflug 2005-06-20 14:42:06 Re: [PATCHES] default database creation with initdb