]> granicus.if.org Git - postgresql/blobdiff - src/backend/executor/nodeHash.c
Add macros to make AllocSetContextCreate() calls simpler and safer.
[postgresql] / src / backend / executor / nodeHash.c
index 9ed09a7b0ca206d5bb54b79b9270ea09f2eadc25..6375d9bfda7ee2818fe59540d1c24be21e49be40 100644 (file)
@@ -344,15 +344,11 @@ ExecHashTableCreate(Hash *node, List *hashOperators, bool keepNulls)
         */
        hashtable->hashCxt = AllocSetContextCreate(CurrentMemoryContext,
                                                                                           "HashTableContext",
-                                                                                          ALLOCSET_DEFAULT_MINSIZE,
-                                                                                          ALLOCSET_DEFAULT_INITSIZE,
-                                                                                          ALLOCSET_DEFAULT_MAXSIZE);
+                                                                                          ALLOCSET_DEFAULT_SIZES);
 
        hashtable->batchCxt = AllocSetContextCreate(hashtable->hashCxt,
                                                                                                "HashBatchContext",
-                                                                                               ALLOCSET_DEFAULT_MINSIZE,
-                                                                                               ALLOCSET_DEFAULT_INITSIZE,
-                                                                                               ALLOCSET_DEFAULT_MAXSIZE);
+                                                                                               ALLOCSET_DEFAULT_SIZES);
 
        /* Allocate data that will live for the life of the hashjoin */