Re: Duplicate records in a table inspite of a primary key

From: Julius Tuskenis <julius(at)nsoft(dot)lt>
To: subamathy <subamathy(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Duplicate records in a table inspite of a primary key
Date: 2008-08-12 14:05:08
Message-ID: 48A19894.60601@nsoft.lt
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hello,

please send a sql script that was used to create this table. If you use
pgAdmin you can copy the sql from it. By saying dublicate records you
mean identical? That is there are records with the same user_id value?

subamathy rašė:
> Hi,
> We are having problems resulting from users being able to create
> duplicate records
> in table.
>
> Below is the description of the table
>
> Column | Type | Modifiers
> -----------------------+------------------------+-----------
> user_id | character varying(128) | not null
> person_email_required | numeric(5,0) |
> wddx_data | text |
> proxy_id | character varying(128) |
> email_to | character varying(6) |
> password | character varying(60) |
> user_name | character varying(64) |
> language_preference | character varying(20) |
> enable_autosearch | character varying(6) |
> country_id | character varying(16) |
> Indexes:
> "i_personalise" PRIMARY KEY, btree (user_id)
> "i_personalise_proxy_id" btree (proxy_id)
> "i_personalise_user_id" btree (user_id)
>
>
>
>
> database version: PostgreSQL 8.0.1
>
> i_personalise- index
>
> conn type: Primary (constriant Type)
> condeferrable: False
> conkey: 1 (column which has constraint)
>
>
> Could you please help me out in finding the reason for such dupicate
> records existing
>
>
> Could you pls help me out in finding the reson for duplicate records
> being inserted.
>

--
Julius Tuskenis
Programavimo skyriaus vadovas
UAB nSoft
mob. +37068233050

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Robert Treat 2008-08-12 14:27:53 Re: Duplicate records in a table inspite of a primary key
Previous Message Rafael Domiciano 2008-08-12 13:56:52 Re: Duplicate records in a table inspite of a primary key