Skip to content

Commit a77d39d

Browse files
Rename EVT cache hash to make context name unique
BuildEventTriggerCache sets up a context "EventTriggerCache" which house a hash named "Event Trigger Cache", which in turn creates a context with the table name. This generated log output for memory context dumps like below: LOG: level: 2; EventTriggerCache: 8192 total in 1 blocks; 7928 free (4 chunks); 264 used LOG: level: 3; Event Trigger Cache: 8192 total in 1 blocks; 2616 free (0 chunks); 5576 used This renames the hash to ensure that the hash context has a unique name for easier log reading and debugging. Discussion: https://postgr.es/m/5EDC969E-CAE3-4CBD-965E-3B8A1294CFA4@yesql.se
1 parent 68a59f9 commit a77d39d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/utils/cache/evtcache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ BuildEventTriggerCache(void)
121121
ctl.keysize = sizeof(EventTriggerEvent);
122122
ctl.entrysize = sizeof(EventTriggerCacheEntry);
123123
ctl.hcxt = EventTriggerCacheContext;
124-
cache = hash_create("Event Trigger Cache", 32, &ctl,
124+
cache = hash_create("EventTriggerCacheHash", 32, &ctl,
125125
HASH_ELEM | HASH_BLOBS | HASH_CONTEXT);
126126

127127
/*

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy