Re: BUG #18693: Column names not set when using SELECT STRICT INTO with RECORD type
Jan Behrens <jbe-mlist@magnetkern.de>
From: Jan Behrens <jbe-mlist@magnetkern.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@lists.postgresql.org
Date: 2024-11-07T01:23:44Z
Lists: pgsql-bugs
On Wed, 06 Nov 2024 17:30:02 -0500 Tom Lane <tgl@sss.pgh.pa.us> wrote: > PG Bug reporting form <noreply@postgresql.org> writes: > [...] > > You have the syntax wrong: what you intended (I presume) is > > SELECT a, b INTO STRICT r FROM (SELECT 'A' AS a, 'B' AS b) AS q; > > With what you wrote, the STRICT is taken as an output column alias of > the outer SELECT, [...] > > regards, tom lane Oooops, my apologies! It totally makes sense now. Thanks for your thorough/helpful response. Regards Jan Behrens