Re: Strange bug

From: "Leif B(dot) Kristensen" <leif(at)solumslekt(dot)org>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Strange bug
Date: 2005-11-29 14:52:52
Message-ID: 200511291552.53024.leif@solumslekt.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Leif B. Kristensen 2005-11-29 14:57:13 Re: Strange bug
Previous Message A. Kretschmer 2005-11-29 14:43:50 Re: Strange bug