]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Lock all relations referred to in updatable views
authorStephen Frost <sfrost@snowman.net>
Tue, 8 Sep 2015 21:02:59 +0000 (17:02 -0400)
committerStephen Frost <sfrost@snowman.net>
Tue, 8 Sep 2015 21:02:59 +0000 (17:02 -0400)
commitcb1b9b959cf068650999af55e160cdce88c4a5a4
tree1d100183bd6bdf0d1d9b817157dc92401d93200e
parent75232ad799b5061bc296928fe54ed28daf041766
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.
src/backend/rewrite/rewriteHandler.c