]> granicus.if.org Git - postgresql/blobdiff - src/backend/utils/cache/evtcache.c
Add macros to make AllocSetContextCreate() calls simpler and safer.
[postgresql] / src / backend / utils / cache / evtcache.c
index 6fc1df880b3bc75c675a56078cc257464cab91e6..8a620a51c8c83f2d6c08f832fc618a9c9fddc3b6 100644 (file)
@@ -105,9 +105,7 @@ BuildEventTriggerCache(void)
                EventTriggerCacheContext =
                        AllocSetContextCreate(CacheMemoryContext,
                                                                  "EventTriggerCache",
-                                                                 ALLOCSET_DEFAULT_MINSIZE,
-                                                                 ALLOCSET_DEFAULT_INITSIZE,
-                                                                 ALLOCSET_DEFAULT_MAXSIZE);
+                                                                 ALLOCSET_DEFAULT_SIZES);
                CacheRegisterSyscacheCallback(EVENTTRIGGEROID,
                                                                          InvalidateEventCacheCallback,
                                                                          (Datum) 0);