Use database hash function for Postgres