There is no default โchecksumโ for large columns in PostgreSQL, you will have to implement it yourself.
Reply to comment
Hash indexes provide fast performance for equality checks. And they are updated automatically. But they are not fully integrated into PostgreSQL (yet), so their use is not recommended - read the manual .
And you cannot request values โโand use them in your application, for example. You can do this with a checksum column, but you need to add a performance index if your table is large and supports a column. I would use the BEFORE INSERT OR UPDATE trigger for this.
Thus, the hash index may or may not be for you. @ Hijra. the idea certainly fits the problem ...
Erwin brandstetter
source share