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(-)