Re: Duplicated records

From: lucas(at)presserv(dot)org
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Duplicated records
Date: 2005-05-25 20:53:56
Message-ID: 20050525175356.s6rowsmck8e888s8@www.presserv.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Thanks....
CTAS (Create Table As Select) command works fine!!! With great performance.
I think it is the best way to correct the data...(apparently)
I didnt know about "select DISTINCT". I am going to read about it.

Thank you.

Quoting Bricklen Anderson <BAnderson(at)PresiNET(dot)com>:
>> Is there a way to delete those duplicated records faster??? Remembering the
>> table have aprox 360.000 records...
>> Is better I create other table and copy those data??? How should I
>> created???
>>
> for 180k rows (which isn't many) just do a CTAS (Create Table As Select):
>
> create table lanctos_distinct as select distinct * from lanctos;
> truncate table lanctos;
> alter table lanctos_distinct rename to lanctos;
>

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2005-05-25 21:19:19 Re: Sql select like question.
Previous Message Andreas Kretschmer 2005-05-25 17:57:02 Re: [despammed] Re: Duplicated records