Re: Re: Easiest way to compare the results of two queries row by row and column by column - Mailing list pgsql-general

From Branden Visser
Subject Re: Re: Easiest way to compare the results of two queries row by row and column by column
Date
Msg-id CAOo4ObocX+NQE86PiPaB6dQFtODJ6+r+jdmLJ+xSZk7FbvwqGQ@mail.gmail.com
Whole thread Raw
In response to Re: Easiest way to compare the results of two queries row by row and column by column  (gilad905 <gilad905@gmail.com>)
List 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 by date:

Previous
From: "Ilya Kazakevich"
Date:
Subject: Re: Permissions pg_dump / import
Next
From: Patrick B
Date:
Subject: Re: Permissions pg_dump / import