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

Commitb53ca9b

Browse files
committed
Improve comment.
1 parent07f9f4d commitb53ca9b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎src/backend/optimizer/path/clausesel.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/optimizer/path/clausesel.c,v 1.61 2003/11/2919:51:50 pgsql Exp $
11+
* $PostgreSQL: pgsql/src/backend/optimizer/path/clausesel.c,v 1.62 2003/12/2921:44:49 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -108,6 +108,10 @@ restrictlist_selectivity(Query *root,
108108
* If the calculation yields zero or negative, however, we chicken out and
109109
* use a default estimate; that probably means that one or both
110110
* selectivities is a default estimate rather than an actual range value.
111+
*
112+
* A free side-effect is that we can recognize redundant inequalities such
113+
* as "x < 4 AND x < 5"; only the tighter constraint will be counted.
114+
*
111115
* Of course this is all very dependent on the behavior of
112116
* scalarltsel/scalargtsel; perhaps some day we can generalize the approach.
113117
*/

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp