Finding Duplicate Rows during INSERTs

Поиск
Список
Период
Сортировка
От Rich Shepard
Тема Finding Duplicate Rows during INSERTs
Дата
Msg-id alpine.LNX.2.00.1207091545100.17482@salmo.appl-ecosys.com
обсуждение исходный текст
Ответы Re: Finding Duplicate Rows during INSERTs  (Rob Sargent <robjsargent@gmail.com>)
Re: Finding Duplicate Rows during INSERTs  (Darren Duncan <darren@darrenduncan.net>)
Список pgsql-general
   Source data has duplicates. I have a file that creates the table then
INSERTS INTO the table all the rows. When I see errors flash by during the
'psql -d <database> -f <file.sql>' I try to scroll back in the terminal to
see where the duplicate rows are located. Too often they are too far back to
let me scroll to see them.

   There must be a better way of doing this. Can I run psql with the tee
command to capture errors in a file I can examine? What is the proper/most
efficient way to identify the duplicates so they can be removed?

TIA,

Rich


В списке pgsql-general по дате отправления:

Предыдущее
От: Willy-Bas Loos
Дата:
Сообщение: Re: Tutorial On Connecting LibreOffice to PostgreSQL Available
Следующее
От: Rob Sargent
Дата:
Сообщение: Re: Finding Duplicate Rows during INSERTs