]> granicus.if.org Git - postgresql/blobdiff - src/backend/executor/nodeFunctionscan.c
Add macros to make AllocSetContextCreate() calls simpler and safer.
[postgresql] / src / backend / executor / nodeFunctionscan.c
index 464170810862ab8074f16f51240f64a07b2898e4..5a0f324de0aaa824fc76f33fcb27dc8c2db41574 100644 (file)
@@ -3,7 +3,7 @@
  * nodeFunctionscan.c
  *       Support routines for scanning RangeFunctions (functions in rangetable).
  *
- * Portions Copyright (c) 1996-2014, PostgreSQL Global Development Group
+ * Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
  *
@@ -508,9 +508,7 @@ ExecInitFunctionScan(FunctionScan *node, EState *estate, int eflags)
         */
        scanstate->argcontext = AllocSetContextCreate(CurrentMemoryContext,
                                                                                                  "Table function arguments",
-                                                                                                 ALLOCSET_DEFAULT_MINSIZE,
-                                                                                                 ALLOCSET_DEFAULT_INITSIZE,
-                                                                                                 ALLOCSET_DEFAULT_MAXSIZE);
+                                                                                                 ALLOCSET_DEFAULT_SIZES);
 
        return scanstate;
 }