97
97
#define MAYBE_RECOVER_RELATION_BUILD_MEMORY 1
98
98
#else
99
99
#define RECOVER_RELATION_BUILD_MEMORY 0
100
- #ifdef CLOBBER_CACHE_ENABLED
100
+ #ifdef DISCARD_CACHES_ENABLED
101
101
#define MAYBE_RECOVER_RELATION_BUILD_MEMORY 1
102
102
#endif
103
103
#endif
@@ -1011,10 +1011,10 @@ RelationBuildDesc(Oid targetRelId, bool insertIt)
1011
1011
* data, reasoning that the caller's context is at worst of transaction
1012
1012
* scope, and relcache loads shouldn't happen so often that it's essential
1013
1013
* to recover transient data before end of statement/transaction. However
1014
- * that's definitely not true in clobber-cache test builds , and perhaps
1015
- * it's not true in other cases.
1014
+ * that's definitely not true when debug_discard_caches is active , and
1015
+ * perhaps it's not true in other cases.
1016
1016
*
1017
- * When cache clobbering is enabled or when forced to by
1017
+ * When debug_discard_caches is active or when forced to by
1018
1018
* RECOVER_RELATION_BUILD_MEMORY=1, arrange to allocate the junk in a
1019
1019
* temporary context that we'll free before returning. Make it a child of
1020
1020
* caller's context so that it will get cleaned up appropriately if we
@@ -1024,7 +1024,7 @@ RelationBuildDesc(Oid targetRelId, bool insertIt)
1024
1024
MemoryContext tmpcxt = NULL ;
1025
1025
MemoryContext oldcxt = NULL ;
1026
1026
1027
- if (RECOVER_RELATION_BUILD_MEMORY || debug_invalidate_system_caches_always > 0 )
1027
+ if (RECOVER_RELATION_BUILD_MEMORY || debug_discard_caches > 0 )
1028
1028
{
1029
1029
tmpcxt = AllocSetContextCreate (CurrentMemoryContext ,
1030
1030
"RelationBuildDesc workspace" ,
@@ -1627,11 +1627,10 @@ LookupOpclassInfo(Oid operatorClassOid,
1627
1627
* otherwise. However it can be helpful for detecting bugs in the cache
1628
1628
* loading logic itself, such as reliance on a non-nailed index. Given
1629
1629
* the limited use-case and the fact that this adds a great deal of
1630
- * expense, we enable it only for high values of
1631
- * debug_invalidate_system_caches_always.
1630
+ * expense, we enable it only for high values of debug_discard_caches.
1632
1631
*/
1633
- #ifdef CLOBBER_CACHE_ENABLED
1634
- if (debug_invalidate_system_caches_always > 2 )
1632
+ #ifdef DISCARD_CACHES_ENABLED
1633
+ if (debug_discard_caches > 2 )
1635
1634
opcentry -> valid = false;
1636
1635
#endif
1637
1636
0 commit comments