Re: Finding Duplicate Rows during INSERTs - Mailing list pgsql-general

From Rich Shepard
Subject Re: Finding Duplicate Rows during INSERTs
Date
Msg-id alpine.LNX.2.00.1207091801370.17482@salmo.appl-ecosys.com
Whole thread Raw
In response to Re: Finding Duplicate Rows during INSERTs  (Rob Sargent <robjsargent@gmail.com>)
List pgsql-general
On Mon, 9 Jul 2012, Rob Sargent wrote:

> psql -d <database> -f file.sql > file.log 2>&1 would give you a logfile

Rob,

   Ah, yes. I forgot about redirecting stdout to a file.

> sort -u file.raw > file.uniq might give you clean data?

   Not when it has the SQL on each line. I thought that I had eliminated
duplicates in the raw file, but with 128K rows I obviously missed many.

Thanks,

Rich


pgsql-general by date:

Previous
From: Don Parris
Date:
Subject: Re: Tutorial On Connecting LibreOffice to PostgreSQL Available
Next
From: Darren Duncan
Date:
Subject: Re: Finding Duplicate Rows during INSERTs