From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Refactor join_is_removable() to separate out distinctness-provin |
Date: | 2016-04-07 17:12:42 |
Message-ID: | E1aoDU2-0005oB-5d@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Refactor join_is_removable() to separate out distinctness-proving logic.
Extracted from pending unique-join patch, since this is a rather large
delta but it's simply moving code out into separately-accessible
subroutines.
I (tgl) did choose to add a bit more logic to rel_supports_distinctness,
so that it verifies that there's at least one potentially usable unique
index rather than just checking indexlist != NIL. Otherwise there's
no functional change here.
David Rowley
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/f338dd7585cab45da9053e883ad65a440a99d3be
Modified Files
--------------
src/backend/optimizer/plan/analyzejoins.c | 244 +++++++++++++++++++-----------
1 file changed, 157 insertions(+), 87 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2016-04-07 17:30:31 | Re: [COMMITTERS] pgsql: In pg_dump, include pg_catalog and extension ACLs, if changed |
Previous Message | Teodor Sigaev | 2016-04-07 16:33:29 | pgsql: Make testing of phraseto_tsquery independ from value of |