Re: Finding Duplicate Rows during INSERTs

Поиск
Список
Период
Сортировка
От Rich Shepard
Тема Re: Finding Duplicate Rows during INSERTs
Дата
Msg-id alpine.LNX.2.00.1207091801370.17482@salmo.appl-ecosys.com
обсуждение исходный текст
Ответ на Re: Finding Duplicate Rows during INSERTs  (Rob Sargent <robjsargent@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Don Parris
Дата:
Сообщение: Re: Tutorial On Connecting LibreOffice to PostgreSQL Available
Следующее
От: Darren Duncan
Дата:
Сообщение: Re: Finding Duplicate Rows during INSERTs