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

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

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...

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2007-01-25 21:33:27 Re: BUG #2917: spi_prepare doesn't accept typename aliases
Previous Message Tom Lane 2007-01-25 21:20:43 Re: Implied Functional index use (redux)