pgsql: Fix build_grouping_chain() to not clobber its input lists.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix build_grouping_chain() to not clobber its input lists.
Date: 2016-01-14 16:52:02
Message-ID: E1aJl7y-0007QN-Vb@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix build_grouping_chain() to not clobber its input lists.

There's no good reason for stomping on the input data; it makes the logic
in this function no simpler, in fact probably the reverse. And it makes
it impossible to separate path generation from plan generation, as I'm
working towards doing; that will require more than one traversal of these
lists.

Branch
------
master

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

Modified Files
--------------
src/backend/optimizer/plan/planner.c | 116 ++++++++++++++++------------------
1 file changed, 54 insertions(+), 62 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2016-01-15 04:19:40 pgsql: Fix spelling mistake.
Previous Message Magnus Hagander 2016-01-14 12:09:39 pgsql: Properly close token in sspi authentication