Added PostgreSQL hamming function definition.