Two entries with the same primary key - Mailing list pgsql-general

From Ivan Evtuhovich
Subject Two entries with the same primary key
Date
Msg-id CAOXtjwcmzA0ocGM1x7mPxeCUcqjQ_ggZE9JcFLDm5GLbSin-sQ@mail.gmail.com
Whole thread Raw
Responses Re: Two entries with the same primary key  (Merlin Moncure <mmoncure@gmail.com>)
Re: Two entries with the same primary key  (Merlin Moncure <mmoncure@gmail.com>)
List pgsql-general
Hello,

More then month ago we upgrade DB from 9.0 to 9.1 with pg_upgrade. Then we move DB to another server with standard pg streaming replication.

Now we have two entries with the same primary key. And I do not know what to do.

SELECT ctid, id from billing_invoices where id = 27362891;
ctid | id
--------------+----------
(1112690,11) | 27362891
(1112438,26) | 27362891


\d billing_invoices
Table "public.billing_invoices"
Column | Type | Modifiers
----------------+-----------------------------+---------------------------------------------------------------
id | integer | not null default nextval('billing_invoices_id_seq'::regclass)
...
created_at | timestamp without time zone |
updated_at | timestamp without time zone |
Indexes:
"billing_invoices_pkey" PRIMARY KEY, btree (id)

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: non-static LIKE patterns
Next
From: "Welty, Richard"
Date:
Subject: recommended schema diff tools?