forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc4ae968
committed
Fix Assert failure in new plancache code.
The regression tests were failing with CLOBBER_CACHE_ALWAYS enabled,as reported by buildfarm member jaguar. There was an Assert inBuildCachedPlan that asserted that the CachedPlanSource hadn't beeninvalidated since we called RevalidateCachedQuery, which in theory can'thappen because we are holding locks on all the relevant database objects.However, CLOBBER_CACHE_ALWAYS generates a false positive by making aninvalidation happen anyway; and on reflection, that could also occur as aresult of a badly-timed sinval reset due to queue overflow. We could justremove the Assert and forge ahead with the not-really-stale querytree, butit seems safer to do another RevalidateCachedQuery call just to make realsure everything's OK.1 parent99b5454 commitc4ae968
1 file changed
+15
-2
lines changedLines changed: 15 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
718 | 718 |
| |
719 | 719 |
| |
720 | 720 |
| |
721 |
| - | |
722 |
| - | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
723 | 736 |
| |
724 | 737 |
| |
725 | 738 |
| |
|
0 commit comments
Comments
(0)