Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id B057D650213 for ; Tue, 12 Aug 2008 11:12:11 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 63721-08 for ; Tue, 12 Aug 2008 11:11:57 -0300 (ADT) X-Greylist: delayed 00:06:50.908566 by SQLgrey-1.7.6 Received: from vilnius.balt.net (vilnius.balt.net [195.14.170.14]) by postgresql.org (Postfix) with ESMTP id E80E76501F1 for ; Tue, 12 Aug 2008 11:12:02 -0300 (ADT) Received: from nSoft.lt (unknown [217.117.29.29]) by vilnius.balt.net (Postfix) with ESMTP id A2866240361; Tue, 12 Aug 2008 17:05:08 +0300 (EEST) Received: from [192.168.16.191] (unknown [192.168.16.191]) by nSoft.lt (Postfix) with ESMTP id 30AB7BF2FE; Tue, 12 Aug 2008 17:25:09 +0000 (GMT) Message-ID: <48A19894.60601@nsoft.lt> Date: Tue, 12 Aug 2008 17:05:08 +0300 From: Julius Tuskenis User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: subamathy CC: pgsql-admin@postgresql.org Subject: Re: Duplicate records in a table inspite of a primary key References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200808/46 X-Sequence-Number: 29891 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