Skip to content

Commit 8cf0ad1

Browse files
committed
Add comment that ec_relids excludes "child" EquivalenceClass members.
This was already documented a few lines further down, but the comment just beside the field declaration could be misleading. Per gripe from Kyotaro Horiguchi.
1 parent 406a1a9 commit 8cf0ad1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/include/nodes/relation.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,8 @@ typedef struct EquivalenceClass
585585
List *ec_members; /* list of EquivalenceMembers */
586586
List *ec_sources; /* list of generating RestrictInfos */
587587
List *ec_derives; /* list of derived RestrictInfos */
588-
Relids ec_relids; /* all relids appearing in ec_members */
588+
Relids ec_relids; /* all relids appearing in ec_members, except
589+
* for child members (see below) */
589590
bool ec_has_const; /* any pseudoconstants in ec_members? */
590591
bool ec_has_volatile; /* the (sole) member is a volatile expr */
591592
bool ec_below_outer_join; /* equivalence applies below an OJ */

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