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/optimizer/path/allpaths.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/optimizer/path/allpaths.c')
-rw-r--r-- | src/backend/optimizer/path/allpaths.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/backend/optimizer/path/allpaths.c b/src/backend/optimizer/path/allpaths.c index 9ad3a73e94..8675b6efd3 100644 --- a/src/backend/optimizer/path/allpaths.c +++ b/src/backend/optimizer/path/allpaths.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/optimizer/path/allpaths.c,v 1.127 2005/04/21 19:18:12 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/optimizer/path/allpaths.c,v 1.128 2005/04/25 01:30:13 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -174,13 +174,12 @@ set_plain_rel_pathlist(Query *root, RelOptInfo *rel, RangeTblEntry *rte) /* Consider sequential scan */ add_path(rel, create_seqscan_path(root, rel)); + /* Consider index scans */ + create_index_paths(root, rel); + /* Consider TID scans */ create_tidscan_paths(root, rel); - /* Consider index paths for both simple and OR index clauses */ - create_index_paths(root, rel); - create_or_index_paths(root, rel); - /* Now find the cheapest of the paths for this rel */ set_cheapest(rel); } |