pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Leif B. Kristensen <leif@solumslekt.org>
To: pgsql-sql@postgresql.org
Subject: Re: Strange bug
Date: Tue, 29 Nov 2005 15:52:52 +0100
Message-ID: <200511291552.53024.leif@solumslekt.org> (raw)
In-Reply-To: <6965.1133275062@sss.pgh.pa.us>
References: <200511291531.30441.leif@solumslekt.org>
	<6965.1133275062@sss.pgh.pa.us>

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



view thread (7+ messages)  latest in thread

Message-ID: <200511291552.53024.leif@solumslekt.org>
Permalink:  ../200511291552.53024.leif@solumslekt.org/
Also on:    postgresql.org/message-id/200511291552.53024.leif@solumslekt.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: leif@solumslekt.org
  Subject: Re: Strange bug
  In-Reply-To: <200511291552.53024.leif@solumslekt.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox