diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-01-06 04:31:01 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-01-06 04:31:01 +0000 |
commit | b0c4a50bbbbd62c444cb3806a97c1e51e2249cfd (patch) | |
tree | 0816cf1d1cc2a28665e5de740a20c80afbc4f5e7 /src/include/nodes/execnodes.h | |
parent | fa559a86eec2ae90fd63fd7e6563e42f7dc619e0 (diff) | |
download | postgresql-b0c4a50bbbbd62c444cb3806a97c1e51e2249cfd.tar.gz postgresql-b0c4a50bbbbd62c444cb3806a97c1e51e2249cfd.zip |
Instead of rechecking lossy index operators by putting them into the
regular qpqual ('filter condition'), add special-purpose code to
nodeIndexscan.c to recheck them. This ends being almost no net addition
of code, because the removal of planner code balances out the extra
executor code, but it is significantly more efficient when a lossy
operator is involved in an OR indexscan. The old implementation had
to recheck the entire indexqual in such cases.
Diffstat (limited to 'src/include/nodes/execnodes.h')
-rw-r--r-- | src/include/nodes/execnodes.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/nodes/execnodes.h b/src/include/nodes/execnodes.h index 48385d16f31..21d32dec857 100644 --- a/src/include/nodes/execnodes.h +++ b/src/include/nodes/execnodes.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/nodes/execnodes.h,v 1.109 2003/12/18 22:23:42 tgl Exp $ + * $PostgreSQL: pgsql/src/include/nodes/execnodes.h,v 1.110 2004/01/06 04:31:01 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -776,6 +776,7 @@ typedef ScanState SeqScanState; * RuntimeKeysReady true if runtime Skeys have been computed * RelationDescs ptr to array of relation descriptors * ScanDescs ptr to array of scan descriptors + * LossyQuals ptr to array of qual lists for lossy operators * DupHash hashtable for recognizing dups in multiple scan * MaxHash max # entries we will allow in hashtable * ---------------- @@ -795,6 +796,7 @@ typedef struct IndexScanState bool iss_RuntimeKeysReady; RelationPtr iss_RelationDescs; IndexScanDescPtr iss_ScanDescs; + List **iss_LossyQuals; HTAB *iss_DupHash; long iss_MaxHash; } IndexScanState; |