]> granicus.if.org Git - postgresql/blobdiff - src/backend/utils/misc/tzparser.c
Add macros to make AllocSetContextCreate() calls simpler and safer.
[postgresql] / src / backend / utils / misc / tzparser.c
index a960343baa71d58cb794b823a9bc3ceeb8d606e5..a053e22439b3d0e5d02b07a12d9c7d8479c3c25d 100644 (file)
@@ -450,9 +450,7 @@ load_tzoffsets(const char *filename)
         */
        tmpContext = AllocSetContextCreate(CurrentMemoryContext,
                                                                           "TZParserMemory",
-                                                                          ALLOCSET_SMALL_MINSIZE,
-                                                                          ALLOCSET_SMALL_INITSIZE,
-                                                                          ALLOCSET_SMALL_MAXSIZE);
+                                                                          ALLOCSET_SMALL_SIZES);
        oldContext = MemoryContextSwitchTo(tmpContext);
 
        /* Initialize array at a reasonable size */