I installed Postgre and all went fine until I got to create plpgsql. This is the error I get in the console:
postgres@linux:~> createlang plpgsql template1
psql: could not connect to server: Connection refused
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
createlang: external error
This is the error I get in the log file:
FATAL: Can't read lock file /tmp/.s.PGSQL.5432.lock: Permission denied
Before that I had done:
/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
/usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data -l /usr/local/pgsql/data/server.log start
and I got the exact same answers you guys show there in the docs...
Thanks!