From: pinker <pinker@onet.eu>
To: pgsql-bugs@postgresql.org
Subject: Re: pg_dump - wrong order with inheritance
Date: Tue, 24 Nov 2015 10:31:26 -0700 (MST)
Message-ID: <1448386286161-5874935.post@n5.nabble.com> (raw)
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: pinker@onet.eu
Subject: Re: pg_dump - wrong order with inheritance
In-Reply-To: <1448386286161-5874935.post@n5.nabble.com>
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> <1448386286161-5874935.post@n5.nabble.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox