X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 526369DCB88 for ; Tue, 29 Nov 2005 10:52:54 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 32454-06 for ; Tue, 29 Nov 2005 10:52:56 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail44.e.nsc.no (mail44.e.nsc.no [193.213.115.44]) by postgresql.org (Postfix) with ESMTP id 7233E9DCBA9 for ; Tue, 29 Nov 2005 10:52:50 -0400 (AST) Received: from [192.168.0.57] (062016183238.customer.alfanett.no [62.16.183.238]) (authenticated bits=0) by mail44.nsc.no (8.13.5/8.13.5) with ESMTP id jATEqrsR013603 for ; Tue, 29 Nov 2005 15:52:53 +0100 (CET) From: "Leif B. Kristensen" To: pgsql-sql@postgresql.org Subject: Re: Strange bug Date: Tue, 29 Nov 2005 15:52:52 +0100 User-Agent: KMail/1.8.1 References: <200511291531.30441.leif@solumslekt.org> <6965.1133275062@sss.pgh.pa.us> In-Reply-To: <6965.1133275062@sss.pgh.pa.us> X-Face: %iea8o"[SI'kMDS.`hz7lU=?\^lC9J-]CVjo; f{4-C:$?uVUEjyN~uYFn%*aH_c3d09U>=?utf-8?q?x=0A=09TXtaoj=7EMV=2E8PgG7hik9=3BcCT2N6+u?=@Y{wH\p3*_f~FH9k,Wi74e[_l%.7b^'zJ)8S'^G<(=?utf-8?q?=3D=0A=09zw8=5CPMC3=27=7BKl9=2EzL*ks!b6wA?=,c~'F`k&Vq|ELDGa|4 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[AWL=0.000] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200511/272 X-Sequence-Number: 23523 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