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

Commit84ccfdf

Browse files
committed
Avoid a little bit of unnecessary computation in canonicalize_qual.
1 parent8b33278 commit84ccfdf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/backend/optimizer/prep/prepqual.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/optimizer/prep/prepqual.c,v 1.22 2000/01/28 03:22:36 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/optimizer/prep/prepqual.c,v 1.23 2000/02/27 19:45:44 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -139,7 +139,8 @@ canonicalize_qual(Expr *qual, bool removeAndFlag)
139139
* and only one relation is mentioned, and DNF is no larger than
140140
* the CNF representation. (Pretty shaky; can we improve on this?)
141141
*/
142-
if (dnfok&&dnfnodes <=cnfnodes&&or_clause((Node*)newqual)&&
142+
if (cnfok&&dnfok&&dnfnodes <=cnfnodes&&
143+
or_clause((Node*)newqual)&&
143144
NumRelids((Node*)newqual)==1)
144145
cnfok= false;
145146
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp