能否在Azure托管的PostgreSQL服务器上远程运行pg_dump?微软文档专门介绍了在创建本地数据库备份后运行pg_restore (https://learn.microsoft.com/en-us/azure/postgresql/howto-migrate-using-dump-and-restore)。当我最初尝试像这样运行脚本时:
pg_dump -Fc -v --host=test.postgress.database.azure.com --port=5432 --username=test@test --dbname=test > testdmp.sql
以下错误信息被返回:
我想知道我可能在哪里出错了,或者这是不可能的事情。pg_dump:[归档程序(db)]连接到数据库“test”失败:无法将主机名“test.postgress.database.azure.com”翻译为地址:未知的主机