forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit65eb2d0
committed
Acquire locks on views in AcquirePlannerLocks, too.
Commit47bb9db taught AcquireExecutorLocks to re-acquire lockson views using data from their RTE_SUBQUERY replacements, butit now seems like we should make AcquirePlannerLocks do the same.In this way, if a view has been redefined, we will notice thata bit earlier while checking validity of a cached plan and therebyavoid some wasted work.Report and patch by Amit Langote.Discussion:https://postgr.es/m/CA+HiwqH0xZOQ+GQAdKeckY1R4NOeHdzhtfxkAMJLSchpapNk5w@mail.gmail.com1 parent84adc8e commit65eb2d0
1 file changed
+8
-0
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1846 | 1846 |
| |
1847 | 1847 |
| |
1848 | 1848 |
| |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
1849 | 1857 |
| |
1850 | 1858 |
| |
1851 | 1859 |
| |
|
0 commit comments
Comments
(0)