diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-04-25 01:30:14 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-04-25 01:30:14 +0000 |
| commit | 5b05185262fd562080ecfd675c7b3634a69851c0 (patch) | |
| tree | b9a9ff51a51e72d5076d6828584b30a504335303 /src/backend/nodes/copyfuncs.c | |
| parent | 186655e9a53b62f75e57bcfc218129a6cfe8ea68 (diff) | |
| download | postgresql-5b05185262fd562080ecfd675c7b3634a69851c0.tar.gz | |
Remove support for OR'd indexscans internal to a single IndexScan plan
node, as this behavior is now better done as a bitmap OR indexscan.
This allows considerable simplification in nodeIndexscan.c itself as
well as several planner modules concerned with indexscan plan generation.
Also we can improve the sharing of code between regular and bitmap
indexscans, since they are now working with nigh-identical Plan nodes.
Diffstat (limited to 'src/backend/nodes/copyfuncs.c')
| -rw-r--r-- | src/backend/nodes/copyfuncs.c | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c index 71cea4bc2f..f0d8666091 100644 --- a/src/backend/nodes/copyfuncs.c +++ b/src/backend/nodes/copyfuncs.c @@ -15,7 +15,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/nodes/copyfuncs.c,v 1.302 2005/04/19 22:35:13 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/nodes/copyfuncs.c,v 1.303 2005/04/25 01:30:13 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -253,13 +253,12 @@ _copyIndexScan(IndexScan *from) /* * copy remainder of node */ - COPY_NODE_FIELD(indxid); - COPY_NODE_FIELD(indxqual); - COPY_NODE_FIELD(indxqualorig); - COPY_NODE_FIELD(indxstrategy); - COPY_NODE_FIELD(indxsubtype); - COPY_NODE_FIELD(indxlossy); - COPY_SCALAR_FIELD(indxorderdir); + COPY_SCALAR_FIELD(indexid); + COPY_NODE_FIELD(indexqual); + COPY_NODE_FIELD(indexqualorig); + COPY_NODE_FIELD(indexstrategy); + COPY_NODE_FIELD(indexsubtype); + COPY_SCALAR_FIELD(indexorderdir); return newnode; } @@ -280,11 +279,11 @@ _copyBitmapIndexScan(BitmapIndexScan *from) /* * copy remainder of node */ - COPY_SCALAR_FIELD(indxid); - COPY_NODE_FIELD(indxqual); - COPY_NODE_FIELD(indxqualorig); - COPY_NODE_FIELD(indxstrategy); - COPY_NODE_FIELD(indxsubtype); + COPY_SCALAR_FIELD(indexid); + COPY_NODE_FIELD(indexqual); + COPY_NODE_FIELD(indexqualorig); + COPY_NODE_FIELD(indexstrategy); + COPY_NODE_FIELD(indexsubtype); return newnode; } |
