From f92e8a4b5ee6a22252cbba012d629f5cefef913f Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 27 Sep 2009 20:09:58 +0000 Subject: Replace the array-style TupleTable data structure with a simple List of TupleTableSlot nodes. This eliminates the need to count in advance how many Slots will be needed, which seems more than worth the small increase in the amount of palloc traffic during executor startup. The ExecCountSlots infrastructure is now all dead code, but I'll remove it in a separate commit for clarity. Per a comment from Robert Haas. --- src/backend/executor/execUtils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backend/executor/execUtils.c') diff --git a/src/backend/executor/execUtils.c b/src/backend/executor/execUtils.c index 43c0e540653..c20c76cbae0 100644 --- a/src/backend/executor/execUtils.c +++ b/src/backend/executor/execUtils.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/executor/execUtils.c,v 1.161 2009/07/29 20:56:18 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/executor/execUtils.c,v 1.162 2009/09/27 20:09:57 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -197,7 +197,7 @@ CreateExecutorState(void) estate->es_query_cxt = qcontext; - estate->es_tupleTable = NULL; + estate->es_tupleTable = NIL; estate->es_processed = 0; estate->es_lastoid = InvalidOid; -- cgit v1.2.3