]> granicus.if.org Git - postgresql/blobdiff - contrib/tablefunc/tablefunc.c
Rename SortMem and VacuumMem to work_mem and maintenance_work_mem.
[postgresql] / contrib / tablefunc / tablefunc.c
index f7d730791373d4921b367bd0b96d92f13b9307d7..74f20c5061cf3518fcbe543fc71ef5631577821e 100644 (file)
@@ -865,7 +865,7 @@ get_crosstab_tuplestore(char *sql,
        MemoryContext SPIcontext;
 
        /* initialize our tuplestore */
-       tupstore = tuplestore_begin_heap(true, false, SortMem);
+       tupstore = tuplestore_begin_heap(true, false, work_mem);
 
        /* Connect to SPI manager */
        if ((ret = SPI_connect()) < 0)
@@ -1246,7 +1246,7 @@ connectby(char *relname,
        oldcontext = MemoryContextSwitchTo(per_query_ctx);
 
        /* initialize our tuplestore */
-       tupstore = tuplestore_begin_heap(true, false, SortMem);
+       tupstore = tuplestore_begin_heap(true, false, work_mem);
 
        MemoryContextSwitchTo(oldcontext);