aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistbuildbuffers.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-09-17 01:47:33 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2011-09-17 01:47:33 -0400
commitc4ae968633b37e3b0a5da83e9d7d2a5518191564 (patch)
tree13192f87251671dfff8c48d014f52d722a39ce34 /src/backend/access/gist/gistbuildbuffers.c
parent99b5454167aab89b94f171e4318ef12443c6cfc4 (diff)
downloadpostgresql-c4ae968633b37e3b0a5da83e9d7d2a5518191564.tar.gz
postgresql-c4ae968633b37e3b0a5da83e9d7d2a5518191564.zip
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 in BuildCachedPlan that asserted that the CachedPlanSource hadn't been invalidated since we called RevalidateCachedQuery, which in theory can't happen because we are holding locks on all the relevant database objects. However, CLOBBER_CACHE_ALWAYS generates a false positive by making an invalidation happen anyway; and on reflection, that could also occur as a result of a badly-timed sinval reset due to queue overflow. We could just remove the Assert and forge ahead with the not-really-stale querytree, but it seems safer to do another RevalidateCachedQuery call just to make real sure everything's OK.
Diffstat (limited to 'src/backend/access/gist/gistbuildbuffers.c')
0 files changed, 0 insertions, 0 deletions