Re: restore/dup OIDs HELP! - Mailing list pgsql-admin

From Tom Lane
Subject Re: restore/dup OIDs HELP!
Date
Msg-id 25509.1041883014@sss.pgh.pa.us
Whole thread Raw
In response to restore/dup OIDs HELP!  (Jack Flak <jack@flak.nospam.org>)
List pgsql-admin
Jack Flak <jack@flak.nospam.org> writes:
> So, once again, here's my question:  how do I go about deleting the
> duplicate entries WITHOUT also deleting the originals?

Perhaps something like

    CREATE TABLE foo AS SELECT DISTINCT * FROM original;

then delete all from original, then INSERT INTO original SELECT * FROM foo;

            regards, tom lane

pgsql-admin by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: restore/dup OIDs HELP!
Next
From: Robert Treat
Date:
Subject: Re: Vacuum explained