Skip site navigation (1) Skip section navigation (2)

Duplicate primary keys

From: "Jason Tan Boon Teck" <tanboonteck(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Duplicate primary keys
Date: 2008-01-18 02:33:43
Message-ID: dd8f6c970801171833k4a33d40byfcf9f3ba00bf0e04@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-novice
I was performing a reindex yesterday when it failed stating a duplicate
primary key violation. I looked into the database and found 3 tables with
duplicate rows.

How reliable is PostgreSQL in *preventing* rows duplicate primary keys to be
inserted? I am not using any table inheritance and the db is ver 8.1.1 from
Debian Etch. The db is used by a PHP app.


TIA.

-- 
Jason Tan Boon Teck

Responses

pgsql-novice by date

Next:From: Tom LaneDate: 2008-01-18 03:22:55
Subject: Re: Duplicate primary keys
Previous:From: Tom LaneDate: 2008-01-17 16:30:22
Subject: Re: domains, types, constraints

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group