ralph:~ ralphsaunders$ sudo psql postgres -c 'CREATE EXTENSION "adminpack";'
Password:
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?
ralph:lib ralphsaunders$ ps auxw | grep postgres
ralphsaunders 87696 0.0 0.0 2455456 592 ?? Ss 2:16am 0:00.08 postgres: writer process
ralphsaunders 87695 0.0 0.0 2455456 552 ?? Ss 2:16am 0:00.00 postgres: checkpointer process
ralphsaunders 87693 0.0 0.2 2455456 6300 ?? S 2:16am 0:00.02 /usr/local/bin/postgres -D /usr/local/var/postgres -r /usr/local/var/postgres/server.log