Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+2-1
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)