Re: Strange bug - Mailing list pgsql-sql

From Leif B. Kristensen
Subject Re: Strange bug
Date
Msg-id 200511291552.53024.leif@solumslekt.org
Whole thread Raw
In response to Re: Strange bug  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Strange bug
List pgsql-sql
On Tuesday 29 November 2005 15:37, Tom Lane wrote:
>relation_citations doesn't have a primary key.  See
>http://www.postgresql.org/docs/8.1/static/ddl-inherit.html
>particularly the "caveats" section.

Uh-oh. That's my first 'gotcha' in PostgreSQL.

I added the following constraints:

ALTER TABLE relation_citations   ADD CONSTRAINT unique_relation_citation_id UNIQUE (citation_id);

ALTER TABLE event_citations   ADD CONSTRAINT unique_event_citation_id UNIQUE (citation_id);

And I hope that will be sufficient.
-- 
Leif Biberg Kristensen | Registered Linux User #338009
http://solumslekt.org/ | Cruising with Gentoo/KDE


pgsql-sql by date:

Previous
From: "A. Kretschmer"
Date:
Subject: Re: Strange bug
Next
From: "Leif B. Kristensen"
Date:
Subject: Re: Strange bug