Finding the hash value of a row in postgresql July 25, 2023 by Tarik Cast the row to text and use md5 to make a hash: SELECT md5(CAST((f.*)AS text)) FROM foo f;