Oliver Elphick <olly@lfix.co.uk> writes:
> Check which version of psql is being run (`which psql' or `type psql' or
> `whereis psql'). Make sure your own version is found in the search path
> before any other version.
Also, check to see which copy of libpq it's finding ('ldd' will help
here). You may need to adjust your library search path to find the
right libpq (see 'ldconfig').
regards, tom lane