diff options
author | Tom Lane | 2004-02-03 17:34:04 +0000 |
---|---|---|
committer | Tom Lane | 2004-02-03 17:34:04 +0000 |
commit | 391c3811a2b7f4cd666e1b4f35534046a862abbb (patch) | |
tree | 16e534067f9cb86d99b598675fbf3929589e6629 /contrib/tablefunc/tablefunc.c | |
parent | 39d715bee6f1eb1e7b90148368a22fe24f008185 (diff) |
Rename SortMem and VacuumMem to work_mem and maintenance_work_mem.
Make btree index creation and initial validation of foreign-key constraints
use maintenance_work_mem rather than work_mem as their memory limit.
Add some code to guc.c to allow these variables to be referenced by their
old names in SHOW and SET commands, for backwards compatibility.
Diffstat (limited to 'contrib/tablefunc/tablefunc.c')
-rw-r--r-- | contrib/tablefunc/tablefunc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/tablefunc/tablefunc.c b/contrib/tablefunc/tablefunc.c index f7d73079137..74f20c5061c 100644 --- a/contrib/tablefunc/tablefunc.c +++ b/contrib/tablefunc/tablefunc.c @@ -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); |