pgsql: Merge parser's p_relnamespace and p_varnamespace lists into a si - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Merge parser's p_relnamespace and p_varnamespace lists into a si
Date
Msg-id E1SzD4m-0000bQ-Lt@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/f630157496a70f8ece4fd4c27eeead88c74b9015

Modified Files
--------------
src/backend/parser/analyze.c        |   37 +++-----
src/backend/parser/parse_clause.c   |  178 +++++++++++++++++++----------------
src/backend/parser/parse_relation.c |   38 +++++---
src/backend/parser/parse_target.c   |   40 +++++---
src/include/parser/parse_node.h     |   51 +++++++---
5 files changed, 200 insertions(+), 144 deletions(-)


pgsql-committers by date:

Previous
From: Simon Riggs
Date:
Subject: pgsql: Fix minor bug in XLogFileRead() that accidentally worked.
Next
From: Simon Riggs
Date:
Subject: pgsql: Doc correction to point out that 9.2+ can overwrite pg_xlog file