Lock all relations referred to in updatable views
authorStephen Frost <[email protected]>
Tue, 8 Sep 2015 21:02:53 +0000 (17:02 -0400)
committerStephen Frost <[email protected]>
Tue, 8 Sep 2015 21:02:53 +0000 (17:02 -0400)
commit9801bae217e9d3f72e2d1f3dd780bf0bf9365dae
treeb07e7e353c11a4da7b6452a709c8ebb15d655bd8
parent97b7b9560f3dbe1c48dfb4630f50444eb7e8adc8
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