Re: need SQL logic to find out way's to Implement check sum to validate table data is migrated correctly - Mailing list pgsql-general

From Thiemo Kellner
Subject Re: need SQL logic to find out way's to Implement check sum to validate table data is migrated correctly
Date
Msg-id 8789dad7-93b7-4a04-a061-668e8b1b3cc3@gelassene-pferde.biz
Whole thread Raw
In response to need SQL logic to find out way's to Implement check sum to validate table data is migrated correctly  (Y_esteembsv-forum <esteembsv-forum@yahoo.com>)
Responses Re: need SQL logic to find out way's to Implement check sum to validate table data is migrated correctly
List pgsql-general

Hi

Why do you need checksums? Can you not employ a full outer join? My though behind this is that checksumming is quite costly cpuwise and you have to fiddle with each and every relevent column, be it as part of the checksum string be it as part of the joiner. The joiner would have the advantage that you could, if you wanted, also implement logic to tell you precisely in which columns the difference is encountered.

Kind regards

Thiemo

Am 27.10.2023 um 10:56 schrieb Y_esteembsv-forum:
Hi 
Need SQL logic/different approach method's  to find out way's 
a) to Implement check sum to validate table data is migrated correctly  

Any guidance

Regards
Bharani SV

pgsql-general by date:

Previous
From: Thomas Kellerer
Date:
Subject: Re: Correct way of using complex expressions as partitioning key
Next
From: Ron
Date:
Subject: Re: need SQL logic to find out way's to Implement check sum to validate table data is migrated correctly