Re: BUG #18693: Column names not set when using SELECT STRICT INTO with RECORD type - Mailing list pgsql-bugs

From Jan Behrens
Subject Re: BUG #18693: Column names not set when using SELECT STRICT INTO with RECORD type
Date
Msg-id 20241107022344.eb99b565ecbf01aed919e7cd@magnetkern.de
Whole thread Raw
In response to Re: BUG #18693: Column names not set when using SELECT STRICT INTO with RECORD type  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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



pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #18693: Column names not set when using SELECT STRICT INTO with RECORD type
Next
From: Aleksander Alekseev
Date:
Subject: TimestampTz->Text->TimestampTz casting fails with DateStyle 'Postgres'