interface: cpp: add tai/taia comparison operators

Add the == and != operators for both Tai and Taia objects and
a couple simple tests.
interface: postgresql: use void pointers

Change all the uses of char pointers to void pointers within the
postgresql interface code.
interface: postgresql: include access/hash.h

Include PostgreSQL's access/hash.h for hash_any() method.