Re: Strange bug

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Leif B(dot) Kristensen" <leif(at)solumslekt(dot)org>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Strange bug
Date: 2005-11-29 14:37:42
Message-ID: 6965.1133275062@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Leif B. Kristensen" <leif(at)solumslekt(dot)org> writes:
> I just noticed that I accidentally got a duplicate id. My
> definitions are here:

> CREATE TABLE citations (
> citation_id INTEGER PRIMARY KEY,
> source_fk INTEGER REFERENCES sources (source_id)
> );

> CREATE TABLE relation_citations (
> relation_fk INTEGER REFERENCES relations (relation_id)
> ) INHERITS (citations);

relation_citations doesn't have a primary key. See
http://www.postgresql.org/docs/8.1/static/ddl-inherit.html
particularly the "caveats" section.

regards, tom lane

In response to

  • Strange bug at 2005-11-29 14:31:30 from Leif B. Kristensen

Responses

Browse pgsql-sql by date

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