From: Stephen Frost <sfrost@snowman.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: Lock all relations referred to in updatable views
Date: Tue, 08 Sep 2015 21:03:17 +0000
Message-ID: <E1ZZQ2v-0001vA-9I@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Lock all relations referred to in updatable views
Even views considered "simple" enough to be automatically updatable may
have mulitple relations involved (eg: in a where clause). We need to
make sure and lock those relations when rewriting the query.
Back-patch to 9.3 where updatable views were added.
Pointed out by Andres, patch thanks to Dean Rasheed.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/c3e0ddd403d74b161cd83cdccbb0adc45788934f
Modified Files
--------------
src/backend/rewrite/rewriteHandler.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: sfrost@snowman.net
Subject: Re: pgsql: Lock all relations referred to in updatable views
In-Reply-To: <E1ZZQ2v-0001vA-9I@gemulon.postgresql.org>
References: <E1ZZQ2v-0001vA-9I@gemulon.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