pgsql: Refactor check_functional_grouping() to use get_primary_key_attn

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Refactor check_functional_grouping() to use get_primary_key_attn
Date: 2016-02-11 22:52:11
Message-ID: E1aU05r-000650-4R@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Refactor check_functional_grouping() to use get_primary_key_attnos().

If we ever get around to allowing functional dependency to be proven
from other things besides simple primary keys, this code will need to
be rethought, but that was true anyway. In the meantime, we might as
well not have two very-similar routines for scanning pg_constraint.

David Rowley, reviewed by Julien Rouhaud

Branch
------
master

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

Modified Files
--------------
src/backend/catalog/pg_constraint.c | 110 +++++++++---------------------------
1 file changed, 26 insertions(+), 84 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2016-02-12 04:21:56 pgsql: Further tweaking of deadlock isolation tests.
Previous Message Tom Lane 2016-02-11 22:35:07 pgsql: Remove GROUP BY columns that are functionally dependent on other