public inbox for [email protected]  
help / color / mirror / Atom feed
From: Wasim Devale <[email protected]>
To: Mukesh Rajpurohit <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Subject: Re: Data comparison
Date: Mon, 12 Aug 2024 17:14:28 +0530
Message-ID: <CAB5fag4ZZ3_m4A=+9rZYmPZWhOAjJreff-C3T8_Sszp02ScGbA@mail.gmail.com> (raw)
In-Reply-To: <CAL+ptAAdXVDcxs_-KndF7B8bV4Fx8KHR5xEuBOZQj5=PThpj8w@mail.gmail.com>
References: <CANc-nPt0WFbMBYPUKht1anxtOp5aC5JW=MZBb5y6oF1geO1=SQ@mail.gmail.com>
	<CAPnRvGv+2+pjDM7YdVudBmLnsEtCUwXsKk-dPfNP2-xU8bwD6Q@mail.gmail.com>
	<CAAPsdhc8ym3JJ_wP7yxzC_9dmCVhahMKeGriC6W8robDBRzouw@mail.gmail.com>
	<CAL+ptAAdXVDcxs_-KndF7B8bV4Fx8KHR5xEuBOZQj5=PThpj8w@mail.gmail.com>

also we can use pg_collector report

Thanks,
Wasim

On Mon, 12 Aug, 2024, 5:09 pm Mukesh Rajpurohit, <[email protected]>
wrote:

> Hi Harish,
>                       You can use EXCEPT operator for this purpose, i.e
> (select * from source_table except select * from target_table;) and vice
> versa. Thanks.
>
> On Mon, Aug 12, 2024, 4:47 PM Kashif Zeeshan <[email protected]>
> wrote:
>
>> Hi
>>
>> You can also use pgAdmin for schema comparison, please check the below
>> link.
>>
>>
>> https://www.pgadmin.org/docs/pgadmin4/8.8/schema_diff.html#:~:text=Click%20on%20Schema%20Diff%20unde...
>> .
>>
>> Thanks
>> Kashif Zeeshan
>>
>> On Mon, Aug 12, 2024 at 3:48 PM Muhammad Usman Khan <[email protected]>
>> wrote:
>>
>>> Dear Harish,
>>> If you are referring to data validation then the following query might
>>> give you the desired results
>>>
>>> /pg_dump -U postgres -s target -p 5334 > /tmp/db2_schema.sql ./pg_dump
>>> -U postgres -s source > /tmp/db1_schema.sql diff /tmp/db1_schema.sql
>>> /tmp/db2_schema.sql
>>>
>>> Adjust your ports and databases name accordingly
>>>
>>> Regards
>>> Muhammad Usman Khan
>>>
>>>
>>>
>>> On Mon, 12 Aug 2024 at 15:41, Harish Harish <[email protected]> wrote:
>>>
>>>> Dear Admins
>>>>
>>>> Is there any way to do data comparison for the database scheme in
>>>> PostgreSQL between old version(10) and new version (15.0).
>>>>
>>>> Just migrated database from version 10 to 15.
>>>>
>>>> Much appreciate your help.
>>>>
>>>> Regards,
>>>> Hari
>>>>
>>>


view thread (7+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
  Subject: Re: Data comparison
  In-Reply-To: <CAB5fag4ZZ3_m4A=+9rZYmPZWhOAjJreff-C3T8_Sszp02ScGbA@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox