Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a77d39d

Browse filesBrowse 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
Copy full SHA for a77d39d

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/backend/utils/cache/evtcache.c

Copy file name to clipboardExpand all lines: src/backend/utils/cache/evtcache.c
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.