Tina Messmann <tina.messmann@xinux.de> writes:
> i solved this problem now by setting PGHOST to /var/run/postgresql (is
> this the common solution?)
If you want to run with a nonstandard socket file location, you have
to tell both postmaster and psql at runtime (psql cannot see the
postgresql.conf file, so you have to tell it separately). Possibly
a better answer is to make the socket file location standard by altering
DEFAULT_PGSOCKET_DIR in src/include/pg_config.h before you build.
regards, tom lane