1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

Replace slightly klugy create_bitmap_restriction() function with a

more efficient routine in restrictinfo.c (which can make use of
make_restrictinfo_internal).
This commit is contained in:
Tom Lane
2005-04-25 02:14:48 +00:00
parent 7a4c34c97c
commit 79a1b00226
5 changed files with 99 additions and 90 deletions

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/optimizer/path/orindxpath.c,v 1.69 2005/04/25 01:30:13 tgl Exp $
* $PostgreSQL: pgsql/src/backend/optimizer/path/orindxpath.c,v 1.70 2005/04/25 02:14:47 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -146,7 +146,8 @@ create_or_index_quals(Query *root, RelOptInfo *rel)
* Convert the path's indexclauses structure to a RestrictInfo tree,
* and add it to the rel's restriction list.
*/
newrinfos = create_bitmap_restriction((Path *) bestpath);
newrinfos = make_restrictinfo_from_bitmapqual((Path *) bestpath,
true, true);
Assert(list_length(newrinfos) == 1);
or_rinfo = (RestrictInfo *) linitial(newrinfos);
Assert(IsA(or_rinfo, RestrictInfo));