Re: BUG #2917: spi_prepare doesn't accept typename aliases

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: BUG #2917: spi_prepare doesn't accept typename aliases
Date: 2007-01-25 21:37:21
Message-ID: 45B92311.8040000@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
>
>> I dug into it a bit and found that pltcl and plpython appear to use
>> almost identical code, but only pltcl has this limitation documented.
>> I'm inclined to say we should document this for plperl and plpython for
>> stable releases and remove the limitation for all three for 8.3. I see
>> that SQL level prepare calls regprocin() to resolve type names, so maybe
>> we should that for the PLs when calling SPI_prepare as well.
>>
>
> I think parseTypeString() may be the thing to use. It's what plpgsql
> uses...
>
>

OK, I'll see what I can do.

cheers

andrew.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2007-01-25 22:10:13 Re: [HACKERS] Win32 WEXITSTATUS too
Previous Message Alvaro Herrera 2007-01-25 21:34:52 Re: autovacuum process handling