On 05/24/2017 06:31 AM, Igor Neyman wrote:

-----Original Message-----
From: Adrian Klaver [mailto:adrian.kla...@aklaver.com]
Sent: Tuesday, May 23, 2017 7:42 PM
To: Igor Neyman <iney...@perceptron.com>; George Neuner <gneun...@comcast.net>; 
pgsql-general@postgresql.org
Subject: Re: [GENERAL] logical replication in PG10 BETA


So take the local line out of pg_hba. Then from the machine that is the 
subscriber do:

psql -d repl -h pub_machine -p 5432 -U repl_user

--
Adrian Klaver

adrian.kla...@aklaver.com

________________________________________________________________________________________

This psql connection works.
Even more, like I showed in one of previous messages, connection between 2 PG 
servers using Postgres_fdw also works, and it uses the same connection string 
as CREATE SUBSCRIPTION statement.

Except the FDW connection string does not specify a user and I do remember seeing a USER MAPPING that indicated what user you where connecting as. Just making sure that the repl_user could connect to the remote instance outside the logical replication framework.

At this point all I could think of is to start over:

1) DROP the PUBLICATION.

2) CREATE PUBLICATION
Check the Postgres log on the publisher side.

3) CREATE SUBSCRIPTION
Check the Postgres logs on both the publisher and subscription sides.

Another thought. Have you checked the Windows Firewall settings/logs to see if it might be interfering?


Regards,
Igor



--
Adrian Klaver
adrian.kla...@aklaver.com


--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Reply via email to