mirror of
https://github.com/postgres/postgres.git
synced 2025-10-19 15:49:24 +03:00
Rename debug_invalidate_system_caches_always to debug_discard_caches.
The name introduced by commit 4656e3d66
was agreed to be unreasonably
long. To match this change, rename initdb's recently-added
--clobber-cache option to --discard-caches.
Discussion: https://postgr.es/m/1374320.1625430433@sss.pgh.pa.us
This commit is contained in:
5
src/backend/utils/cache/plancache.c
vendored
5
src/backend/utils/cache/plancache.c
vendored
@@ -897,9 +897,8 @@ BuildCachedPlan(CachedPlanSource *plansource, List *qlist,
|
||||
* rejected a generic plan, it's possible to reach here with is_valid
|
||||
* false due to an invalidation while making the generic plan. In theory
|
||||
* the invalidation must be a false positive, perhaps a consequence of an
|
||||
* sinval reset event or the debug_invalidate_system_caches_always code.
|
||||
* But for safety, let's treat it as real and redo the
|
||||
* RevalidateCachedQuery call.
|
||||
* sinval reset event or the debug_discard_caches code. But for safety,
|
||||
* let's treat it as real and redo the RevalidateCachedQuery call.
|
||||
*/
|
||||
if (!plansource->is_valid)
|
||||
qlist = RevalidateCachedQuery(plansource, queryEnv);
|
||||
|
Reference in New Issue
Block a user