Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita0ea713

Browse files
committed
Avoid rechecking lossy operators twice in a bitmap scan plan.
1 parent1fcd4b7 commita0ea713

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

‎src/backend/optimizer/plan/createplan.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/backend/optimizer/plan/createplan.c,v 1.187 2005/04/2503:58:30 tgl Exp $
13+
* $PostgreSQL: pgsql/src/backend/optimizer/plan/createplan.c,v 1.188 2005/04/2504:27:12 tgl Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -889,6 +889,14 @@ create_bitmap_scan_plan(Query *root,
889889
/* Sort clauses into best execution order */
890890
qpqual=order_qual_clauses(root,qpqual);
891891

892+
/*
893+
* When dealing with special or lossy operators, we will at this point
894+
* have duplicate clauses in qpqual and bitmapqualorig. We may as well
895+
* drop 'em from bitmapqualorig, since there's no point in making the
896+
* tests twice.
897+
*/
898+
bitmapqualorig=list_difference_ptr(bitmapqualorig,qpqual);
899+
892900
/* Finally ready to build the plan node */
893901
scan_plan=make_bitmap_heapscan(tlist,
894902
qpqual,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp