Re: Re: Easiest way to compare the results of two queries row by row and column by column

Поиск
Список
Период
Сортировка
От Branden Visser
Тема Re: Re: Easiest way to compare the results of two queries row by row and column by column
Дата
Msg-id CAOo4ObocX+NQE86PiPaB6dQFtODJ6+r+jdmLJ+xSZk7FbvwqGQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Easiest way to compare the results of two queries row by row and column by column  (gilad905 <gilad905@gmail.com>)
Список pgsql-general
On Wed, Aug 17, 2016 at 4:58 AM, gilad905 <gilad905@gmail.com> wrote:
> Vik, note that your new suggestion for a query might be more
> readable/efficient than Jeff's, but IT STILL DOESN'T SOLVE THE PROBLEM OF
> DETECTING DUPLICATE ROWS.
>

I've done this in the past and in my use-case it was easy enough to
export the rows to CSV with a sort, and then use a diff tool to ensure
they're identical. My data had 100's of thousands of rows, but
obviously with massive tables this may not be appropriate.

If you want more details on this I can find the exact psql client
query form I used to get a CSV file of the results.

Hope that helps.

Branden
>
>
> --
> View this message in context:
http://postgresql.nabble.com/Easiest-way-to-compare-the-results-of-two-queries-row-by-row-and-column-by-column-tp5760209p5916761.html
> Sent from the PostgreSQL - general mailing list archive at Nabble.com.
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general


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

Предыдущее
От: "Ilya Kazakevich"
Дата:
Сообщение: Re: Permissions pg_dump / import
Следующее
От: Patrick B
Дата:
Сообщение: Re: Permissions pg_dump / import