diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2009-09-27 20:09:58 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2009-09-27 20:09:58 +0000 |
commit | f92e8a4b5ee6a22252cbba012d629f5cefef913f (patch) | |
tree | 93171ec5198f1f5e4463289bf8c1050c1383741a /src/include/nodes/execnodes.h | |
parent | 61be11ff088c1e2b22c7e2af6f93ccdc286dba01 (diff) | |
download | postgresql-f92e8a4b5ee6a22252cbba012d629f5cefef913f.tar.gz postgresql-f92e8a4b5ee6a22252cbba012d629f5cefef913f.zip |
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.
Diffstat (limited to 'src/include/nodes/execnodes.h')
-rw-r--r-- | src/include/nodes/execnodes.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/nodes/execnodes.h b/src/include/nodes/execnodes.h index 742ff325752..ea66e109c15 100644 --- a/src/include/nodes/execnodes.h +++ b/src/include/nodes/execnodes.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/nodes/execnodes.h,v 1.207 2009/08/23 18:26:08 tgl Exp $ + * $PostgreSQL: pgsql/src/include/nodes/execnodes.h,v 1.208 2009/09/27 20:09:58 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -352,7 +352,7 @@ typedef struct EState /* Other working state: */ MemoryContext es_query_cxt; /* per-query context in which EState lives */ - TupleTable es_tupleTable; /* Array of TupleTableSlots */ + List *es_tupleTable; /* List of TupleTableSlots */ uint32 es_processed; /* # of tuples processed */ Oid es_lastoid; /* last oid processed (by INSERT) */ |