我使用连接到我的 postgres 服务器psql "service=subscription"。我如何使用该服务pg_dump?
我尝试执行以下操作:
pg_dump -h "service=subscription" > /home/fogest/dump.out
然而这并没有奏效。
我应该怎么做?
编辑:当我执行以下操作时出现错误:
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
Run Code Online (Sandbox Code Playgroud)