]> granicus.if.org Git - postgresql/blobdiff - src/backend/access/transam/xloginsert.c
Add macros to make AllocSetContextCreate() calls simpler and safer.
[postgresql] / src / backend / access / transam / xloginsert.c
index c37003a24c2672deadcc72de2c5ee43ff74e601f..3cd273b19f2c26e15fc439a782cbf9110a2b3024 100644 (file)
@@ -997,9 +997,7 @@ InitXLogInsert(void)
        {
                xloginsert_cxt = AllocSetContextCreate(TopMemoryContext,
                                                                                           "WAL record construction",
-                                                                                          ALLOCSET_DEFAULT_MINSIZE,
-                                                                                          ALLOCSET_DEFAULT_INITSIZE,
-                                                                                          ALLOCSET_DEFAULT_MAXSIZE);
+                                                                                          ALLOCSET_DEFAULT_SIZES);
        }
 
        if (registered_buffers == NULL)