Я пытаюсь удаленно подключить Ms SQL из PostgreSQL с помощью Pg-admin, но каждый раз, когда я пытаюсь подключиться с помощью функции dblink_connect, я не могу подключиться, и Pg-admin выдает ошибку:
ERROR: could not establish connection
DETAIL: could not connect to server: Connection timed out (0x0000274C/10060)
Is the server running on host "xxx.xxx.xxx.xxx" and accepting
TCP/IP connections on port 5432?
SQL state: 08001
Вещи, которые я пробовал:
указать номер порта в строке соединения в db_link, который равен 8583, но все равно выдает ошибку, как показано ниже
ERROR: could not establish connection
DETAIL: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
SQL state: 08001
при изменении порта в postgresql .conf файле с 5432 по 8583 и перезапустите, но все равно выдает ошибку, как показано ниже
ERROR: could not establish connection
DETAIL: could not connect to server: Connection timed out (0x0000274C/10060)
Is the server running on host "xxx.xxx.xxx.xxx" and accepting
TCP/IP connections on port 5432?
SQL state: 08001
Итак, могу ли я иметь более одного номера порта в файле postgresql.conf
, в котором он надеется работать так.