Skip to content

Commit b53ca9b

Browse files
committed
Improve comment.
1 parent 07f9f4d commit b53ca9b

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/29 19:51:50 pgsql Exp $
11+
* $PostgreSQL: pgsql/src/backend/optimizer/path/clausesel.c,v 1.62 2003/12/29 21: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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy