aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-03-05 16:00:22 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2014-03-05 16:00:33 -0500
commit8cf0ad1ea38db3e16ac04b408168df4c937862e6 (patch)
tree7e56b2b9c715228ec4303f657d0d7bc6f4b08a5d /src
parent406a1a9ef0beb0a7e3f58805ab2d3140e2202deb (diff)
downloadpostgresql-8cf0ad1ea38db3e16ac04b408168df4c937862e6.tar.gz
postgresql-8cf0ad1ea38db3e16ac04b408168df4c937862e6.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/include/nodes/relation.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/nodes/relation.h b/src/include/nodes/relation.h
index 8aa40d0ef01..c607b36e3a7 100644
--- a/src/include/nodes/relation.h
+++ b/src/include/nodes/relation.h
@@ -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 */