pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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-0001vC-9O@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
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/9801bae217e9d3f72e2d1f3dd780bf0bf9365dae

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


view thread (4+ messages)  latest in thread

Message-ID: <E1ZZQ2v-0001vC-9O@gemulon.postgresql.org>
Permalink:  ../E1ZZQ2v-0001vC-9O@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ZZQ2v-0001vC-9O@gemulon.postgresql.org

 · 

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 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-0001vC-9O@gemulon.postgresql.org>
  References: <E1ZZQ2v-0001vC-9O@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