• Tom Lane's avatar
    Allow CHECK constraints to be placed on foreign tables. · fc2ac1fb
    Tom Lane authored
    As with NOT NULL constraints, we consider that such constraints are merely
    reports of constraints that are being enforced by the remote server (or
    other underlying storage mechanism).  Their only real use is to allow
    planner optimizations, for example in constraint-exclusion checks.  Thus,
    the code changes here amount to little more than removal of the error that
    was formerly thrown for applying CHECK to a foreign table.
    
    (In passing, do a bit of cleanup of the ALTER FOREIGN TABLE reference page,
    which had accumulated some weird decisions about ordering etc.)
    
    Shigeru Hanada and Etsuro Fujita, reviewed by Kyotaro Horiguchi and
    Ashutosh Bapat.
    fc2ac1fb
alter_foreign_table.sgml 16.3 KB