git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 3ae1679) | patch
Lock all relations referred to in updatable views
Tue, 8 Sep 2015 21:02:49 +0000 (17:02 -0400)
Tue, 8 Sep 2015 21:02:49 +0000 (17:02 -0400)
commit c3e0ddd403d74b161cd83cdccbb0adc45788934f
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 diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /