From: PG Doc comments form <noreply@postgresql.org>
To: pgsql-docs@lists.postgresql.org
Cc: lennartrolland@gmail.com
Subject: returning does not act as expected after viewing documentation
Date: Mon, 23 Sep 2019 17:47:54 +0000
Message-ID: <156926087407.1118.10468521588901274687@wrigleys.postgresql.org> (raw)
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/11/dml-returning.html
Description:
With the following query:
update batch_log
set status=('in-progress'),
updated_at=now()
where status = ('pending')
and id = (
select id
from batch_log
where status = ('pending')
order by priority desc, updated_at asc
limit 1
)
returning id, batch_log.update_at
;
I get the following error message:
column batch_log.update_at does not exist
LINE 14: returning id, batch_log.update_at
HINT: Perhaps you meant to reference the column "batch_log.updated_at".
This does not make a whole lot of sense. It is recommending that I do what I
am doing!
Also I don't see why this would fail.
I am on PostgreSQL 11 latest official docker image as of today's date
(2019-09-23).
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-docs@postgresql.org
Cc: noreply@postgresql.org, pgsql-docs@lists.postgresql.org, lennartrolland@gmail.com
Subject: Re: returning does not act as expected after viewing documentation
In-Reply-To: <156926087407.1118.10468521588901274687@wrigleys.postgresql.org>
* 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