pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: nagylzs@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17272: Incorrect syntax parsed
Date: Fri, 05 Nov 2021 09:49:25 -0400
Message-ID: <412653.1636120165@sss.pgh.pa.us> (raw)
In-Reply-To: <17272-3abe7815be15e470@postgresql.org>
References: <17272-3abe7815be15e470@postgresql.org>

PG Bug reporting form <noreply@postgresql.org> writes:
> Formally, the INTO should always precede the FROM keyword in a SELECT INTO
> statement. ( https://www.postgresql.org/docs/12/sql-selectinto.html )

That is not the appropriate reference for plpgsql's version of
SELECT INTO.  You should be reading

https://www.postgresql.org/docs/12/plpgsql-statements.html#PLPGSQL-STATEMENTS-SQL-ONEROW

which explains plpgsql's rules for where to put INTO.

			regards, tom lane





view thread (2+ messages)

Message-ID: <412653.1636120165@sss.pgh.pa.us>
Permalink:  ../412653.1636120165@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/412653.1636120165@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, nagylzs@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #17272: Incorrect syntax parsed
  In-Reply-To: <412653.1636120165@sss.pgh.pa.us>

* 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