Easy points for anyone but me. I am trying to use pg_dump. I am running Mac OSx, postgres.app, 9.2, and I want to back up my db. I tried the other solutions for the same problem, but no success. The postgres.app is running on 5432 as far as I can tell. I ran the command below from a random directory, and from my data directory, no luck.
Command tried:
$ pg_dump pdbt > pdbt.sql
Error:
pg_dump: [archiver (db)] connection to database "pdbt" failed: 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"?