From: PG Doc comments form <noreply@postgresql.org>
To: pgsql-docs@lists.postgresql.org
Cc: pulk.hesten@gmail.com
Subject: With statements does not modify original table untill it is "complete"
Date: Wed, 27 Feb 2019 06:43:02 +0000
Message-ID: <155124978232.1372.5464135554084765467@wrigleys.postgresql.org> (raw)
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/11/queries-with.html
Description:
I think it should be more more visible that data does not change in the
table, untill the with statement is complete. It took some trial-and-error
and fine-reading of the manual before I got this part.
My test code was as following:
create table test(id bigint);
insert into test(id) VALUES(1), (2), (3), (4);
with del as
(delete from test where id in (1, 2))
select * from test;
id
----
1
2
3
4
(4 rows)
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, pulk.hesten@gmail.com
Subject: Re: With statements does not modify original table untill it is "complete"
In-Reply-To: <155124978232.1372.5464135554084765467@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