Re: BUG #18693: Column names not set when using SELECT STRICT INTO with RECORD type

Поиск
Список
Период
Сортировка
От Jan Behrens
Тема Re: BUG #18693: Column names not set when using SELECT STRICT INTO with RECORD type
Дата
Msg-id 20241107022344.eb99b565ecbf01aed919e7cd@magnetkern.de
обсуждение исходный текст
Ответ на Re: BUG #18693: Column names not set when using SELECT STRICT INTO with RECORD type  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления: