diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-05-02 20:54:36 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-05-02 20:54:36 +0000 |
| commit | de28dc9a04c4df5d711815b7a518501b43535a26 (patch) | |
| tree | 1b93363ece14ded804195ff4a1c754a9b4a32306 /src/backend/executor/execQual.c | |
| parent | 1940434f1ef8475c8b59bb8ff03e3f3a10cac6ae (diff) | |
| download | postgresql-de28dc9a04c4df5d711815b7a518501b43535a26.tar.gz | |
Portal and memory management infrastructure for extended query protocol.
Both plannable queries and utility commands are now always executed
within Portals, which have been revamped so that they can handle the
load (they used to be good only for single SELECT queries). Restructure
code to push command-completion-tag selection logic out of postgres.c,
so that it won't have to be duplicated between simple and extended queries.
initdb forced due to addition of a field to Query nodes.
Diffstat (limited to 'src/backend/executor/execQual.c')
| -rw-r--r-- | src/backend/executor/execQual.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/executor/execQual.c b/src/backend/executor/execQual.c index 8c6a7c04b6..a2d0a8346f 100644 --- a/src/backend/executor/execQual.c +++ b/src/backend/executor/execQual.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/executor/execQual.c,v 1.128 2003/04/08 23:20:00 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/executor/execQual.c,v 1.129 2003/05/02 20:54:33 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -377,7 +377,7 @@ ExecEvalVar(Var *variable, ExprContext *econtext, bool *isNull) * XXX this is a horrid crock: since the pointer to the slot might live * longer than the current evaluation context, we are forced to copy * the tuple and slot into a long-lived context --- we use - * TransactionCommandContext which should be safe enough. This + * the econtext's per-query memory which should be safe enough. This * represents a serious memory leak if many such tuples are processed * in one command, however. We ought to redesign the representation * of whole-tuple datums so that this is not necessary. @@ -391,7 +391,7 @@ ExecEvalVar(Var *variable, ExprContext *econtext, bool *isNull) TupleTableSlot *tempSlot; HeapTuple tup; - oldContext = MemoryContextSwitchTo(TransactionCommandContext); + oldContext = MemoryContextSwitchTo(econtext->ecxt_per_query_memory); tempSlot = MakeTupleTableSlot(); tup = heap_copytuple(heapTuple); ExecStoreTuple(tup, tempSlot, InvalidBuffer, true); |
