fnv hash function for PostgreSQL