Re: BUG #8382: Duplicate primary key

From: Curd Reinert <Curd(dot)Reinert(at)ppi(dot)de>
To: Greg Stark <stark(at)mit(dot)edu>
Cc: gsstark(at)gmail(dot)com, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #8382: Duplicate primary key
Date: 2013-08-14 11:32:07
Message-ID: OF97BE5DA6.D521218F-ONC1257BC7.003D7EEB-C1257BC7.003F5DC6@ppi.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

gsstark(at)gmail(dot)com schrieb am 14.08.2013 12:44:40:
> select ctid,xmin,xmax,primarykey from tab where primarykey =
'duplicatevalue'
traviclinkengine=# select ctid,xmin,xmax,* from cluster_ressource where
clusterknoten_id = 1 and ressource_id = 10;
ctid | xmin | xmax | clusterknoten_id | ressource_id | anzahl
-------+-----------+------+------------------+--------------+--------
(1,9) | 308561268 | 0 | 1 | 10 | 0
(3,9) | 308561268 | 0 | 1 | 10 | 0
(2 Zeilen)

> And also show the \d tab output?
traviclinkengine=# \d cluster_ressource
Tabelle »public.cluster_ressource«
Spalte | Typ | Attribute
------------------+----------+-----------
clusterknoten_id | bigint | not null
ressource_id | bigint | not null
anzahl | smallint | not null
Indexe:
"cluster_ressource_pkey" PRIMARY KEY, btree (clusterknoten_id,
ressource_id)
"cl_res_res_fkind" btree (ressource_id)
Fremdschlüssel-Constraints:
"cl_res_clkn_fk" FOREIGN KEY (clusterknoten_id) REFERENCES
clusterknoten(id) ON DELETE RESTRICT
"cl_res_res_fk" FOREIGN KEY (ressource_id) REFERENCES ressource(id) ON
DELETE RESTRICT

> And can you load the pageinspect contrib module in this database?
Yes. At least I think I've just done it. :-)

Curd

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message David Fetter 2013-08-14 14:00:08 Re: BUG #8381: data base inconsistancy
Previous Message Greg Stark 2013-08-14 10:44:40 Re: BUG #8382: Duplicate primary key