diff options
Diffstat (limited to 'src/include/parser/parse_node.h')
-rw-r--r-- | src/include/parser/parse_node.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/include/parser/parse_node.h b/src/include/parser/parse_node.h index a71d7e1f74f..70739bcd5b6 100644 --- a/src/include/parser/parse_node.h +++ b/src/include/parser/parse_node.h @@ -227,8 +227,13 @@ struct ParseState /* * An element of a namespace list. * + * p_names contains the table name and column names exposed by this nsitem. + * (Currently, it's always equal to p_rte->eref.) + * + * p_rte and p_rtindex link to the underlying rangetable entry. + * * The p_nscolumns array contains info showing how to construct Vars - * referencing corresponding elements of the RTE's colnames list. + * referencing the names appearing in the p_names->colnames list. * * Namespace items with p_rel_visible set define which RTEs are accessible by * qualified names, while those with p_cols_visible set define which RTEs are @@ -256,9 +261,10 @@ struct ParseState */ struct ParseNamespaceItem { + Alias *p_names; /* Table and column names */ RangeTblEntry *p_rte; /* The relation's rangetable entry */ int p_rtindex; /* The relation's index in the rangetable */ - /* array of same length as p_rte->eref->colnames: */ + /* array of same length as p_names->colnames: */ ParseNamespaceColumn *p_nscolumns; /* per-column data */ bool p_rel_visible; /* Relation name is visible? */ bool p_cols_visible; /* Column names visible as unqualified refs? */ |