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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #2917: spi_prepare doesn't accept typename aliases such as 'integer'
Дата
Msg-id 6536.1169760294@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #2917: spi_prepare doesn't accept typename aliases such as 'integer'  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: BUG #2917: spi_prepare doesn't accept typename aliases  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
Andrew Dunstan <andrew@dunslane.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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Implied Functional index use (redux)
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: BUG #2917: spi_prepare doesn't accept typename aliases