Postgresql Hash Function Example