Is there a way to get the hash code of a row in postgresql?
I need to export some data only if there is some changes in the data after the last export, the last ex
An alternative approach would be to set an ON INSERT OR UPDATE trigger which would insert the current timestamp into a last_modified
column, and then simply querying based on this column when your import process runs.
Cast the row to text and use md5 to make a hash:
SELECT
md5(CAST((f.*)AS text))
FROM
foo f;