]> granicus.if.org Git - postgresql/commit
Refactor check_functional_grouping() to use get_primary_key_attnos().
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 11 Feb 2016 22:52:03 +0000 (17:52 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 11 Feb 2016 22:52:03 +0000 (17:52 -0500)
commitf144f73242acef574bc27a4c70e809a64806e4a4
treed68ae6c72677b9e2c6e4271d97b2fd04d8012903
parentd4c3a156cb46dcd1f9f97a8011bd94c544079bb5
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
src/backend/catalog/pg_constraint.c