Merge parser's p_relnamespace and p_varnamespace lists into a single list.
Tom Lane <tgl@sss.pgh.pa.us>
Merge parser's p_relnamespace and p_varnamespace lists into a single list. Now that we are storing structs in these lists, the distinction between the two lists can be represented with a couple of extra flags while using only a single list. This simplifies the code and should save a little bit of palloc traffic, since the majority of RTEs are represented in both lists anyway.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/parser/analyze.c | modified | +14 −23 |
| src/backend/parser/parse_clause.c | modified | +98 −80 |
| src/backend/parser/parse_relation.c | modified | +26 −12 |
| src/backend/parser/parse_target.c | modified | +27 −13 |
| src/include/parser/parse_node.h | modified | +35 −16 |