Amit Langote <amitlangote09@gmail.com> writes: > While thinking about query view locking in context of [1], I realized > that we have missed also fixing AcquirePlannerLocks() / > ScanQueryForLocks() to consider that an RTE_SUBQUERY rte may belong to > a view, which must be locked the same as RTE_RELATION entries.
I think you're right about that, because AcquirePlannerLocks is supposed to reacquire whatever locks parsing+rewriting would have gotten. However, what's with this hunk?