【发布时间】:2018-08-30 11:09:48
【问题描述】:
我正在尝试使用 Azure DB for PostgreSQL 实例中的 PostgreSQL 外部数据包装器 (postgres_fdw) 扩展。如 Azure DB for PostgreSQL 中所述,应支持外部数据包装器:https://docs.microsoft.com/en-us/azure/postgresql/concepts-extensions
我设法为用户创建了服务器和映射,但是当我尝试导入表或架构时出现以下错误:
ERROR: could not connect to server "<server with public hostname on AWS>"
DETAIL: could not translate host name "<server with public hostname on AWS>" to address: Unknown host
当用公共 IP 替换主机名时,我得到以下信息:
ERROR: could not connect to server "<SERVER NAME>"
DETAIL: could not connect to server: Network is down (0x00002742/10050)
Is the server running on host "<public IP of the server" and accepting
TCP/IP connections on port 5432?
在 Azure DB for PostgreSQL 实例的防火墙选项中,我已经有了从 0.0.0.0 到 255.255.255.255 的 AllowAllIps 规则。是否还有其他配置可以访问 Azure、DNS 或防火墙配置之外的服务器?
【问题讨论】:
标签: postgresql amazon-web-services azure foreign-data-wrapper