Thanks to visit codestin.com
Credit goes to postgrespro.com

Re: quote_boolean() and friends missing - Mailing list pgsql-hackers

From Tom Lane
Subject Re: quote_boolean() and friends missing
Date
Msg-id [email protected]
Whole thread Raw
In response to Re: quote_boolean() and friends missing  (Markus Bertheau ☭ <[email protected]>)
List pgsql-hackers
Markus Bertheau ☭ <[email protected]> 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


pgsql-hackers by date:

Previous
From: Andreas Pflug
Date:
Subject: Re: [PATCHES] default database creation with initdb
Next
From: Tom Lane
Date:
Subject: Re: [PATCHES] default database creation with initdb