]> granicus.if.org Git - postgresql/commitdiff
Add comment that ec_relids excludes "child" EquivalenceClass members.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 5 Mar 2014 21:00:22 +0000 (16:00 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 5 Mar 2014 21:00:33 +0000 (16:00 -0500)
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.

src/include/nodes/relation.h

index 8aa40d0ef019b5ff16fff3b07a512fa54f1089c5..c607b36e3a715a11d3021be8d49c8ccb466d3bb8 100644 (file)
@@ -585,7 +585,8 @@ typedef struct EquivalenceClass
        List       *ec_members;         /* list of EquivalenceMembers */
        List       *ec_sources;         /* list of generating RestrictInfos */
        List       *ec_derives;         /* list of derived RestrictInfos */
-       Relids          ec_relids;              /* all relids appearing in ec_members */
+       Relids          ec_relids;              /* all relids appearing in ec_members, except
+                                                                * for child members (see below) */
        bool            ec_has_const;   /* any pseudoconstants in ec_members? */
        bool            ec_has_volatile;        /* the (sole) member is a volatile expr */
        bool            ec_below_outer_join;    /* equivalence applies below an OJ */