From: | Kashif Zeeshan <kashi(dot)zeeshan(at)gmail(dot)com> |
---|---|
To: | Muhammad Usman Khan <usman(dot)k(at)bitnine(dot)net> |
Cc: | Harish Harish <hpt3009(at)gmail(dot)com>, pgsql-admin(at)lists(dot)postgresql(dot)org |
Subject: | Re: Data comparison |
Date: | 2024-08-12 11:17:01 |
Message-ID: | CAAPsdhc8ym3JJ_wP7yxzC_9dmCVhahMKeGriC6W8robDBRzouw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Hi
You can also use pgAdmin for schema comparison, please check the below link.
Thanks
Kashif Zeeshan
On Mon, Aug 12, 2024 at 3:48 PM Muhammad Usman Khan <usman(dot)k(at)bitnine(dot)net>
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 <hpt3009(at)gmail(dot)com> 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
>>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Mukesh Rajpurohit | 2024-08-12 11:39:15 | Re: Data comparison |
Previous Message | Muhammad Usman Khan | 2024-08-12 10:48:11 | Re: Data comparison |