On Thu, Oct 30, 2008 at 05:16, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> David Fetter <david@fetter.org> writes:
>> On Wed, Oct 29, 2008 at 10:23:36PM -0400, Tom Lane wrote:
>>> I would argue that it's already designed wrong if there's need for
>>> PL-specific implementation effort.
>
>> I'm not sure how else to do this. The current implementation returns
>> char *, which doesn't translate uniformly into the PLs.
>
> Surely they all have a way to call a SQL function that returns text.
Sure but when you call that function you get *that* functions
qualifier. And unless there already is a way to grab the "parent"
query qualifiers, the PL specific hacks seem not so bad and very
similar to how we have to build trigger arguments for every PL
already.