Re: Duplicate Row Removal - Mailing list pgsql-general

From Dean Gibson (DB Administrator)
Subject Re: Duplicate Row Removal
Date
Msg-id 436C527F.70400@ultimeth.com
Whole thread Raw
In response to Duplicate Row Removal  ("Peter Atkins" <patkins@directpartners.com>)
Responses Re: Duplicate Row Removal
List pgsql-general
CREATE TABLE new_name AS SELECT DISTINCT * FROM old_name;

DROP TABLE old_name;

ALTER TABLE new_name RENAME TO old_name;

On 2005-11-04 17:15, Peter Atkins wrote:
> All,
>
> I have a duplicate row problem and to make matters worse some tables don't have a PK or any unique identifier.
>
> Anyone have any thoughts on how to remove dups?


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Duplicate Row Removal
Next
From: Michal Hlavac
Date:
Subject: Re: Postgresql connection on suse 10