Fix AcquireRewriteLocks to be sure that it acquires the right lock strength
Tom Lane <tgl@sss.pgh.pa.us>
Fix AcquireRewriteLocks to be sure that it acquires the right lock strength when FOR UPDATE is propagated down into a sub-select expanded from a view. Similar bug to parser's isLockedRel issue that I fixed yesterday; likewise seems not quite worth the effort to back-patch.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/rewrite/rewriteHandler.c | modified | +40 −18 |
| src/backend/utils/adt/ruleutils.c | modified | +3 −3 |
| src/include/rewrite/rewriteHandler.h | modified | +2 −2 |