Thread

  1. Re: Check constraints on partition parents only?

    Nikhils <nikkhils@gmail.com> — 2011-07-29T18:12:37Z

    Hi all,
    
    PFA, patch which implements non-inheritable "ONLY" constraints. This
    has been achieved by introducing a new column "conisonly" in
    pg_constraint catalog. Specification of 'ONLY' in the ALTER TABLE ADD
    CONSTRAINT CHECK command is used to set this new column to true.
    Constraints which have this column set to true cannot be inherited by
    present and future children ever.
    
    The psql and pg_dump binaries have been modified to account for such
    persistent non-inheritable check constraints. This patch also has
    documentation changes along with relevant changes to the test cases.
    The regression runs pass fine with this patch applied.
    
    Comments and further feedback, if any, appreciated.
    
    Regards,
    Nikhils