Re: Domains and arrays and composites, oh my
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: "David G. Johnston" <david.g.johnston@gmail.com>
Cc: "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2017-07-13T19:42:48Z
Lists: pgsql-hackers
"David G. Johnston" <david.g.johnston@gmail.com> writes: > On Thursday, July 13, 2017, Tom Lane <tgl@sss.pgh.pa.us> wrote: >> regression=# select * from fdc(); >> fdc >> ------- >> (1,2) >> (1 row) > Select (fdc).* from fdc(); is considerably more intuitive that the cast. > Does that give the expected multi-column result? Yeah, it does, although I'm not sure how intuitive it is that the parentheses are significant ... regression=# select * from fdc(); fdc ------- (1,2) (1 row) regression=# select fdc from fdc(); fdc ------- (1,2) (1 row) regression=# select fdc.* from fdc(); fdc ------- (1,2) (1 row) regression=# select (fdc).* from fdc(); r | i ---+--- 1 | 2 (1 row) regards, tom lane
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