| From: | Joe Conway <mail(at)joeconway(dot)com> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | Merlin Moncure <mmoncure(at)gmail(dot)com>, Corey Huinker <corey(dot)huinker(at)gmail(dot)com>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
| Subject: | Re: dblink: add polymorphic functions. |
| Date: | 2015-10-17 18:45:39 |
| Message-ID: | 56229753.90103@joeconway.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On 07/30/2015 09:51 AM, Tom Lane wrote:
> Joe Conway <mail(at)joeconway(dot)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 | Content-Type | Size |
|---|---|---|
| add-type-of-expression-notation-2015.10.17.0.patch | text/x-diff | 5.3 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Robert Haas | 2015-10-17 19:23:11 | Re: Allow ssl_renegotiation_limit in PG 9.5 |
| Previous Message | Pavel Stehule | 2015-10-17 18:18:23 | Re: proposal: PL/Pythonu - function ereport |