From: | Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com> |
---|---|
To: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: polymorphic table functions light |
Date: | 2020-01-24 08:11:04 |
Message-ID: | 9bc8eb0f-9404-9f38-9e6b-179039cfac58@2ndquadrant.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 2019-12-16 19:53, Peter Eisentraut wrote:
> SQL:2016 has a feature called polymorphic table functions (PTF) that
> addresses this. The full PTF feature is much larger, so I just carved
> out this particular piece of functionality. Here is a link to some
> related information:
> https://modern-sql.com/blog/2018-11/whats-new-in-oracle-database-18c#ptf
>
> The idea is that you attach a helper function to the main function. The
> helper function is called at parse time with the constant arguments of
> the main function call and can compute a result row description (a
> TupleDesc in our case).
Here is an updated patch for the record, since the previous patch had
accumulated some significant merge conflicts.
I will reply to the discussions elsewhere in the thread.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Attachment | Content-Type | Size |
---|---|---|
v2-0001-Polymorphic-table-functions.patch | text/plain | 44.1 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Konstantin Knizhnik | 2020-01-24 08:20:09 | Re: [Proposal] Global temporary tables |
Previous Message | Fujii Masao | 2020-01-24 08:08:35 | Re: Add pg_file_sync() to adminpack |