From: Marko Tiikkaja <marko@joh.to>
To: Pantelis Theodosiou <ypercube@gmail.com>
To: pgsql-docs@postgresql.org
Subject: Re: CTEs modifying the same table more than once
Date: Sat, 1 Oct 2016 13:22:15 +0200
Message-ID: <3a2cae10-2b5a-4f15-e257-0c985e423f0e@joh.to> (raw)
In-Reply-To: <CAE3TBxwvO33+uU1X3Q5zWb64KXbQtSHVBN2LB82NrHRmrp8oag@mail.gmail.com>
References: <CAE3TBxwvO33+uU1X3Q5zWb64KXbQtSHVBN2LB82NrHRmrp8oag@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-docs>
On 2016-10-01 13:13, Pantelis Theodosiou wrote:
> I answered that this is unpredictable behaviour but the docs state only the
> update-update and update-delete cases explicitly and the general wording is
> about 2 updates.
It's documented[1] behavior:
"All the statements are executed with the same snapshot (see Chapter
13), so they cannot "see" one another's effects on the target tables."
.m
[1] https://www.postgresql.org/docs/current/static/queries-with.html
--
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs
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: marko@joh.to, ypercube@gmail.com
Subject: Re: CTEs modifying the same table more than once
In-Reply-To: <3a2cae10-2b5a-4f15-e257-0c985e423f0e@joh.to>
* 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