From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | bahmann(at)math(dot)tu-freiberg(dot)de, pgsql-bugs(at)postgresql(dot)org |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: unique/references not honored when inheriting tables |
Date: | 2000-10-16 16:59:21 |
Message-ID: | 200010161659.MAA16034@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-hackers |
Is this still true in 7.1?
> Helge Bahmann (bahmann(at)math(dot)tu-freiberg(dot)de) reports a bug with a severity of 4
> The lower the number the more severe it is.
>
> Short Description
> unique/references not honored when inheriting tables
>
> Long Description
> If a table inherits fields carrying the "references" or "unique" constraint, they are not honoured but silently dropped. It is necessary to manually create the triggers/indices.
>
> It would be nice if it were possible to create an index across a table and all sub-tables.
>
>
> Sample Code
> CREATE TABLE foo(id int unique)
> CREATE TABLE bar() INHERITS (foo)
> INSERT INTO bar VALUES(1)
> INSERT INTO bar VALUES(1)
>
>
> No file was uploaded with this report
>
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | pgsql-bugs | 2000-10-16 17:42:51 | constraints evaluate 'now' immediately |
Previous Message | Bruce Momjian | 2000-10-16 16:34:39 | Re: Page 13 of tutorial has a typo I believe |
From | Date | Subject | |
---|---|---|---|
Next Message | merlin | 2000-10-16 17:02:17 | RE: AW: ALTER TABLE DROP COLUMN |
Previous Message | Alfred Perlstein | 2000-10-16 16:55:44 | Re: Re: Otvet: WAL and indexes (Re: [HACKERS] WAL status & todo) |