Apparently, you have moved your PostgreSQL lib folder out of place. To confirm this, try the following in psql:
> SET client_encoding TO iso88591; ERROR: could not access file "$libdir/utf8_and_iso8859_1": No such file or directory
If you get an error message like this, then my theory is correct. You will need to find out where these files ended up, or you can reinstall PostgreSQL to recover them.
To find out what $libdir , run the following command:
pg_config --pkglibdir
For me, this produces:
/usr/lib/postgresql
Joey adams
source share