I have a code in sql which I am using. Not much familiar with postgresql. Below is the code which I want to convert to postgresql. I'm using dbeaver 3.5.4
Update tablename
set record_hash = cast(hashbytes('MD5',
coalesce(id, '') +
coalesce(name, '') +
coalesce(created_date, '') +
coalesce(last_modified_date, '')
) as bigint)
;