Re: dblink: add polymorphic functions. - Mailing list pgsql-hackers

From Joe Conway
Subject Re: dblink: add polymorphic functions.
Date
Msg-id 56229753.90103@joeconway.com
Whole thread Raw
In response to Re: dblink: add polymorphic functions.  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: dblink: add polymorphic functions.  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List 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

Attachment

pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: proposal: PL/Pythonu - function ereport
Next
From: Robert Haas
Date:
Subject: Re: Allow ssl_renegotiation_limit in PG 9.5