Re: [HACKERS] [GENERAL] possible bug with inheritance?

2010-02-17 Thread Takahiro Itagaki
Bruce Momjian br...@momjian.us wrote: Summary: ALTER TABLE SET NOT NULL on a parent table is passed to the child, while ALTER TABLE ADD PRIMARY KEY is not, particularly the NOT NULL part of the PRIMARY KEY specification. That does seem like something that should be fixed. Yeah, the issue

Re: [HACKERS] [GENERAL] possible bug with inheritance?

2010-02-17 Thread Bruce Momjian
Takahiro Itagaki wrote: Bruce Momjian br...@momjian.us wrote: Summary: ALTER TABLE SET NOT NULL on a parent table is passed to the child, while ALTER TABLE ADD PRIMARY KEY is not, particularly the NOT NULL part of the PRIMARY KEY specification. That does seem like something that

Re: [HACKERS] [GENERAL] possible bug with inheritance?

2010-02-16 Thread Bruce Momjian
Bruce Momjian wrote: For primary key, there is no enforcement of the primary key, e.g.: test= CREATE TABLE parent (name TEXT); CREATE TABLE test= CREATE TABLE child (age INT) inherits (parent) ; CREATE TABLE test= ALTER TABLE parent ADD primary KEY (name);