Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hiPmE-0007yo-U3 for pgsql-general@arkaria.postgresql.org; Tue, 02 Jul 2019 20:53:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hiPmC-0001FB-TB for pgsql-general@arkaria.postgresql.org; Tue, 02 Jul 2019 20:53:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hiMz0-0000oZ-3k for pgsql-general@lists.postgresql.org; Tue, 02 Jul 2019 17:54:22 +0000 Received: from smtp1.redcom.com ([192.86.3.143]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hiMyx-0003P4-52 for pgsql-general@postgresql.org; Tue, 02 Jul 2019 17:54:21 +0000 Received: from localhost (localhost [127.0.0.1]) by smtp1.redcom.com (Postfix) with ESMTP id 26B26A296 for ; Tue, 2 Jul 2019 13:54:17 -0400 (EDT) X-Virus-Scanned: amavisd-new at redcom.com Received: from smtp1.redcom.com ([127.0.0.1]) by localhost (smtp1.redcom.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XpUkmaEZVa3Z for ; Tue, 2 Jul 2019 13:54:14 -0400 (EDT) Received: from pie.redcom.com (pie [192.168.33.15]) by smtp1.redcom.com (Postfix) with ESMTP id 77F8AA289 for ; Tue, 2 Jul 2019 13:54:14 -0400 (EDT) Received: from exch-02.redcom.com (exch-02.redcom.com [192.168.32.9]) by pie.redcom.com (8.11.7p1+Sun/8.10.2) with ESMTP id x62HsEf19456 for ; Tue, 2 Jul 2019 13:54:14 -0400 (EDT) Received: from exch-02.redcom.com (fd00::ccaa:c259:22f8:6f4b) by exch-02.redcom.com (fd00::ccaa:c259:22f8:6f4b) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 2 Jul 2019 13:54:13 -0400 Received: from exch-02.redcom.com ([fe80::ccaa:c259:22f8:6f4b]) by exch-02.redcom.com ([fe80::ccaa:c259:22f8:6f4b%12]) with mapi id 15.00.1473.003; Tue, 2 Jul 2019 13:54:13 -0400 From: "Day, David" To: "pgsql-general@postgresql.org" Subject: pglogical extension. - 2 node master <-> master logical replication ? Thread-Topic: pglogical extension. - 2 node master <-> master logical replication ? Thread-Index: AdUw+YF5OPe44tx7Sq68xldsB1GCNQ== Date: Tue, 2 Jul 2019 17:54:13 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [192.168.84.42] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Anyone with a test scripts or link to an example of bi-directional master u= sing pglogical. ? I am led to believe from the documentation that this should be possible. (?= ) "Limited multi-master support with conflict resolution exists, but mutual r= eplication connections must be added individually" Which is left unexplained.=20 . 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 t= able successfully, but cannot succeed in the admin of the reverse subscript= ion. On attempting the reverse subscription from host1 to host2 select pglogical.create_subscription('alabama_sub',=20 'host=3Dalabama port=3D5432 dbname=3Dace_db user=3Dreplicator', '{connections}', false, false, '{}' ) could not connect to the postgresql server: FATAL: role "pgsql" does not e= xist DETAIL: dsn was: host=3Dgeorgia port=3D5432 dbname=3Dace_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 u= sing pglogical or a suggestion as to where I went wrong on the setup. Best Regards Dave