Re: BUG #12946: pg_dump/pg_restore not restore data for inherit tables - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #12946: pg_dump/pg_restore not restore data for inherit tables
Date
Msg-id 10870.1427989025@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #12946: pg_dump/pg_restore not restore data for inherit tables  (Дмитрий Дегтярёв<degtyaryov@gmail.com>)
List pgsql-bugs
Дмитрий Дегтярёв <degtyaryov@gmail.com> writes:
> However, in accordance with the documentation
> http://www.postgresql.org/docs/9.4/static/ddl-inherit.html(quote: "It must
> also include check constraints with the same names and check expressions as
> those of the parent."),
> alter table t2 alter column a drop not null;
> the result must be a error.

Ah.  Yeah, that's a known issue: NOT NULL constraints don't currently have
enough infrastructure for ALTER TABLE to realize whether they're inherited
or not.  The system should indeed prevent you from doing DROP NOT NULL
here, but it doesn't.  I think there's an item for that on the TODO list.
        regards, tom lane



pgsql-bugs by date:

Previous
From: Дмитрий Дегтярёв
Date:
Subject: Re: BUG #12946: pg_dump/pg_restore not restore data for inherit tables
Next
From: Stephen Frost
Date:
Subject: Re: BUG #12939: GRANT ALL ON ALL SEQUENCES doesn't work for sequences not yet existing