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

Re: duplicates

From: "Andrei Bintintan" <klodoma(at)ar-sd(dot)net>
To: "Tsirkin Evgeny" <tsurkin(at)mail(dot)jct(dot)ac(dot)il>,<pgsql-admin(at)postgresql(dot)org>
Subject: Re: duplicates
Date: 2004-09-06 07:48:17
Message-ID: 008601c493e5$e0965940$0b00a8c0@forge (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
I am not sure that I understand clearly your problem. Are you sure that your
query's are written correctly?

For duplicates you can make a uniqe indexing so this will avoid any
dupplicates in your table.
CREATE UNIQUE INDEX table_column_uniqueidx ON table(column);

If the rows are dissapearing, please check your delete query, because that
is the only way to erase all rows from the table.

If still got problems, please post some queries, be more specific.

Best regards,

----- Original Message -----
From: "Tsirkin Evgeny" <tsurkin(at)mail(dot)jct(dot)ac(dot)il>
To: <pgsql-admin(at)postgresql(dot)org>
Sent: Monday, September 06, 2004 9:33 AM
Subject: [ADMIN] duplicates

> Hello dear list!
> Here is the problem i have:
> i am using 7.3.4 postgres .i have an aplication that updating 2 tables.
> while it needs to update something - it does not select the rows that
> are already in the table search what it needs to update and execute
> an 'update' query .in place it deletes all the old rows and inserts the
> new one.However while we have a havy load we got a duplicate rows in the
> table ,althought we use transaction an both delete and the new insert
> are in the same transaction.We are pretty sure there is no bug in
> the applicatioin that inserts the data more then once .
> Is that a known problem ?What could be the problem?
> --
> Evgeny.
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
>       subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
>       message can get through to the mailing list cleanly

In response to

  • duplicates at 2004-09-06 06:33:24 from Tsirkin Evgeny


pgsql-admin by date

Next:From: Tsirkin EvgenyDate: 2004-09-06 07:57:00
Subject: Re: duplicates
Previous:From: Tsirkin EvgenyDate: 2004-09-06 06:33:24
Subject: duplicates

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