pgsql: Simplify list traversal logic in add_path().

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Simplify list traversal logic in add_path().
Date: 2011-03-13 16:57:37
Message-ID: E1Pyobp-00043E-RM@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Simplify list traversal logic in add_path().

Its mechanism for recovering after deleting the current list cell was
a bit klugy. Borrow the technique used in other places.

Branch
------
master

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

Modified Files
--------------
src/backend/optimizer/util/pathnode.c | 21 +++++++++++----------
1 files changed, 11 insertions(+), 10 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2011-03-14 14:40:43 pgsql: Remove duplicate time-based macros recently added.
Previous Message Tom Lane 2011-03-12 21:30:47 pgsql: Make all comparisons done for/with statistics use the default co