Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1a1HRv-0007Zb-0k for pgsql-bugs@arkaria.postgresql.org; Tue, 24 Nov 2015 17:32:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1a1HRt-0007L5-OY for pgsql-bugs@arkaria.postgresql.org; Tue, 24 Nov 2015 17:32:13 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a1HRH-0006df-E1 for pgsql-bugs@postgresql.org; Tue, 24 Nov 2015 17:31:35 +0000 Received: from mbob.nabble.com ([162.253.133.15]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1a1HR9-000822-Qm for pgsql-bugs@postgresql.org; Tue, 24 Nov 2015 17:31:34 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mbob.nabble.com (Postfix) with ESMTP id C98911ACDC83 for ; Tue, 24 Nov 2015 09:18:20 -0800 (PST) Date: Tue, 24 Nov 2015 10:31:26 -0700 (MST) From: pinker To: pgsql-bugs@postgresql.org Message-ID: <1448386286161-5874935.post@n5.nabble.com> In-Reply-To: <21633.1448383428@sss.pgh.pa.us> References: <1448281678687-5874794.post@n5.nabble.com> <1655.1448289868@sss.pgh.pa.us> <1448379287033-5874925.post@n5.nabble.com> <21633.1448383428@sss.pgh.pa.us> Subject: Re: pg_dump - wrong order with inheritance MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Tom Lane-2 wrote > Ah. This is not pg_dump's fault, because actually what you've got here > is a logically inconsistent database: at this point, it's possible to > select from a00 and see some rows with null name values, which should > not be possible given the declared NOT NULL constraint on a00.name. > > This is a known limitation of the backend. It should refuse to let you > DROP NOT NULL in a case where the NOT NULL is an inherited constraint, > as it is here. It would not let you drop a CHECK constraint in an > equivalent situation; but the NOT NULL support is older/more primitive > and currently doesn't do enough bookkeeping to realize that a03's NOT NULL > constraint is inherited from a parent table. Fixing that is on our to-do > list, but it hasn't been very high priority. > > regards, tom lane Thank you for your explanations, I have already made changes to my model. -- View this message in context: http://postgresql.nabble.com/pg-dump-wrong-order-with-inheritance-tp5874794p5874935.html Sent from the PostgreSQL - bugs mailing list archive at Nabble.com. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs