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

From: Branden Visser <mrvisser(at)gmail(dot)com>
To: gilad905 <gilad905(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Re: Easiest way to compare the results of two queries row by row and column by column
Date: 2016-08-17 22:58:34
Message-ID: CAOo4ObocX+NQE86PiPaB6dQFtODJ6+r+jdmLJ+xSZk7FbvwqGQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Aug 17, 2016 at 4:58 AM, gilad905 <gilad905(at)gmail(dot)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(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Patrick B 2016-08-17 23:27:12 Re: Permissions pg_dump / import
Previous Message Ilya Kazakevich 2016-08-17 22:30:47 Re: Permissions pg_dump / import