Gevik Babakhani <pgdev@xs4all.nl> writes:
> I was doing strncmp at some point but it did not work because
> of the '\0'. I have created a custom comparison function and it seems to
> work.
Perhaps you just need memcmp instead of strncmp?
regards, tom lane