From: Pavel Kulakov <paul.kulakov@systematica.ru>
To: 'Tom Lane' <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@lists.postgresql.org
Subject: RE: BUG #18195: PL/pgSQL: invalid syntax allowed in SELECT INTO statement
Date: Wed, 15 Nov 2023 10:38:42 +0300
Message-ID: <001801da1796$c19a5060$44cef120$@systematica.ru> (raw)
References: <18195-95ee8b48a9d7cd93@postgresql.org>
<2486681.1699975861@sss.pgh.pa.us>
Hi Pavel,
Now I see what Tom said: this 'garbage' becomes an 'AS'-alias of the column.
Invalid code
select 1 into _n somegarbage;
is treated as
select 1 somegarbage into _n;
which is valid.
Regards,
Pavel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: paul.kulakov@systematica.ru, tgl@sss.pgh.pa.us, pgsql-bugs@lists.postgresql.org
Subject: RE: BUG #18195: PL/pgSQL: invalid syntax allowed in SELECT INTO statement
In-Reply-To: <001801da1796$c19a5060$44cef120$@systematica.ru>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox