Re: dblink: add polymorphic functions.

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: dblink: add polymorphic functions.
Дата
Msg-id 56229753.90103@joeconway.com
обсуждение исходный текст
Ответ на Re: dblink: add polymorphic functions.  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: dblink: add polymorphic functions.
Список pgsql-hackers
On 07/30/2015 09:51 AM, Tom Lane wrote:
> Joe Conway <mail@joeconway.com> writes:
>> What about just TYPE then?
>
>>     SELECT x::TYPE(some_expression) FROM ...
>>     SELECT CAST (x AS TYPE(some_expression)) FROM ...

> The main limitation of this patch is that it won't work for call sites
> that pass pstate == NULL to LookupTypeName.  There are a fair number
> of them, some of which wouldn't care because they could never invoke
> this notation anyway, but for others we'd need to do some work to cons
> up a suitable pstate.

Sorry it took so long for me to get back to this, but any reason the
attached won't work?

Joe

--
Crunchy Data - http://crunchydata.com
PostgreSQL Support for Secure Enterprises
Consulting, Training, & Open Source Development

Вложения

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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: proposal: PL/Pythonu - function ereport
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Allow ssl_renegotiation_limit in PG 9.5