Re: Domains and arrays and composites, oh my
Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
From: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@postgresql.org
Date: 2017-09-28T18:58:00Z
Lists: pgsql-hackers
On 09/28/2017 01:02 PM, Tom Lane wrote: > >> I do think that treating a function returning a domain-over-composite >> differently from one returning a base composite is a POLA. We'd be very >> hard put to explain the reasons for it to an end user. > Do you have any thoughts about how we ought to resolve that? > > Not offhand. Maybe we need to revisit the decision not to modify the executor at all. Obviously that would make the patch a good deal more invasive ;-( One thought I had was that we could invent a new return type of TYPEFUNC_DOMAIN_COMPOSITE so there would be less danger of a PL just treating it as an unconstrained base type as it might do if it saw TYPEFUNC_COMPOSITE. Maybe I'm wrong, but I have a strong suspicion that of we leave it like this now we'll regret it in the future. cheers andrew -- Andrew Dunstan https://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
-
Support domains over composite types in PL/Perl.
- 60651e4cddbb 11.0 landed
-
Support domains over composite types in PL/Tcl.
- 820c0305f645 11.0 landed
-
Support domains over composite types.
- 37a795a60b4f 11.0 landed
-
Fix multiple assignments to a column of a domain type.
- b1cb32fb62c9 10.0 landed
- a8358559e788 9.4.13 landed
- 56076b88dae0 9.5.8 landed
- 55204850a9de 9.2.22 landed
- 521fede166d6 9.3.18 landed
- 123368061188 9.6.4 landed