]> granicus.if.org Git - postgresql/commit
Lock all relations referred to in updatable views
authorStephen Frost <sfrost@snowman.net>
Tue, 8 Sep 2015 21:02:49 +0000 (17:02 -0400)
committerStephen Frost <sfrost@snowman.net>
Tue, 8 Sep 2015 21:02:49 +0000 (17:02 -0400)
commitc3e0ddd403d74b161cd83cdccbb0adc45788934f
tree64983089c9305de88626d72c24dbd546562c76c4
parent3ae16798f0f9d2d941e50062b579c28c9b946c9e
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