Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id F0E66B5DC69 for ; Tue, 6 Sep 2011 22:04:14 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 99092-02 for ; Wed, 7 Sep 2011 01:04:08 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by mail.postgresql.org (Postfix) with SMTP id 2F5A9B5DC2E for ; Tue, 6 Sep 2011 22:04:07 -0300 (ADT) Received: (qmail invoked by alias); 07 Sep 2011 01:04:06 -0000 Received: from mue-88-130-16-170.dsl.tropolys.de (EHLO [192.168.1.20]) [88.130.16.170] by mail.gmx.net (mp046) with SMTP; 07 Sep 2011 03:04:06 +0200 X-Authenticated: #14269776 X-Provags-ID: V01U2FsdGVkX1/SfhxdHXPSxl7KL2xi6AhTMRg2ekNqMqb3XEUefi KINnuS9MzAZMvt Message-ID: <4E66C307.9080605@gmx.net> Date: Wed, 07 Sep 2011 03:04:07 +0200 From: Andreas User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: How can I inherit constraints? Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.393 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.504, T_TO_NO_BRKTS_FREEMAIL=0.01 X-Spam-Level: X-Archive-Number: 201109/11 X-Sequence-Number: 35811 Hi, how would I let a table inherit the constraints of its parent(s) ? It'd be rather cool not having to repeat every foreign key a table inherited from it's parents.