From: Day, David <david.day@redcom.com>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: pglogical extension. - 2 node master <-> master logical replication ?
Date: Tue, 2 Jul 2019 17:54:13 +0000
Message-ID: <e4bf05465c3740bf929c889c878c153a@exch-02.redcom.com> (raw)
Anyone with a test scripts or link to an example of bi-directional master using pglogical. ?
I am led to believe from the documentation that this should be possible. (?)
"Limited multi-master support with conflict resolution exists, but mutual replication connections must be added individually"
Which is left unexplained.
.
Environment: FreeBSD11.3, Postgres 11.2, pglogical 2.2.1
Pglogical installed on both hosts.
pg_hba.conf and postgresql.conf options adjusted per recommendations.
Using pglogical I have set up a one way replication between hosts for a table successfully, but cannot succeed in the admin of the reverse subscription.
On attempting the reverse subscription from host1 to host2
select pglogical.create_subscription('alabama_sub',
'host=alabama port=5432 dbname=ace_db user=replicator',
'{connections}', false, false, '{}' )
could not connect to the postgresql server: FATAL: role "pgsql" does not exist
DETAIL: dsn was: host=georgia port=5432 dbname=ace_db
--
Wrong dsn and role ?
The postgres installed superuser role is not pgsql.
I did not see this issue in the working subscription direction.
Anyone with a test scripts or link to an example of bi-directional master using pglogical or a suggestion as
to where I went wrong on the setup.
Best Regards
Dave
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: david.day@redcom.com
Subject: Re: pglogical extension. - 2 node master <-> master logical replication ?
In-Reply-To: <e4bf05465c3740bf929c889c878c153a@exch-02.redcom.com>
References: <e4bf05465c3740bf929c889c878c153a@exch-02.redcom.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox