aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/cache
diff options
context:
space:
mode:
authorDaniel Gustafsson <dgustafsson@postgresql.org>2023-07-05 08:53:09 +0200
committerDaniel Gustafsson <dgustafsson@postgresql.org>2023-07-05 08:53:09 +0200
commita77d39d5f4b97c7d08e6786429d69eae5baec48e (patch)
tree764f49af0e3e8c9917dd77d140af7d2b04622e3d /src/backend/utils/cache
parent68a59f9e99831cf05a746928a955781503232bbb (diff)
downloadpostgresql-a77d39d5f4b97c7d08e6786429d69eae5baec48e.tar.gz
postgresql-a77d39d5f4b97c7d08e6786429d69eae5baec48e.zip
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
Diffstat (limited to 'src/backend/utils/cache')
-rw-r--r--src/backend/utils/cache/evtcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/cache/evtcache.c b/src/backend/utils/cache/evtcache.c
index 1f5e7eb4c6d..b080f7a35f3 100644
--- a/src/backend/utils/cache/evtcache.c
+++ b/src/backend/utils/cache/evtcache.c
@@ -121,7 +121,7 @@ BuildEventTriggerCache(void)
ctl.keysize = sizeof(EventTriggerEvent);
ctl.entrysize = sizeof(EventTriggerCacheEntry);
ctl.hcxt = EventTriggerCacheContext;
- cache = hash_create("Event Trigger Cache", 32, &ctl,
+ cache = hash_create("EventTriggerCacheHash", 32, &ctl,
HASH_ELEM | HASH_BLOBS | HASH_CONTEXT);
/*