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 ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq