I connect to my postgres server using psql "service=subscription"
. How do I use the service with pg_dump
?
I tried to do the following:
pg_dump -h "service=subscription" > /home/fogest/dump.out
This however did not work.
How should I be doing this?
Edit: The error when I do the following:
pg_dump -h "service=subscription" odyssey_prod > /u3/jhvisser/dump.out
pg_dump: [archiver (db)] connection to database "odyssey_prod" failed: could not translate host name "service=subscription" to address: Name or service not known