Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1elMJz-00056k-Hm for pgsql-general@arkaria.postgresql.org; Mon, 12 Feb 2018 22:11:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elMJy-0005cW-DC for pgsql-general@arkaria.postgresql.org; Mon, 12 Feb 2018 22:11:34 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1elMJy-0005cL-5N for pgsql-general@lists.postgresql.org; Mon, 12 Feb 2018 22:11:34 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1elMJk-0001e9-OA for pgsql-general@postgresql.org; Mon, 12 Feb 2018 22:11:32 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 5DA55B1EFEEA for ; Mon, 12 Feb 2018 15:11:18 -0700 (MST) Date: Mon, 12 Feb 2018 15:11:18 -0700 (MST) From: greigwise To: pgsql-general@postgresql.org Message-ID: <1518473478381-0.post@n3.nabble.com> Subject: pglogical in postgres 9.6 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello. I'm trying to get pglogical setup between 2 postgres 9.6 instances. I can get everything replicating over fine, my problem is that I can't seem to get it to work in the mode where it does not try to copy all the data over initially. On the source side, I'm doing this: psql -U hireology -d $SRCDB -c "SELECT pglogical.create_node( node_name := '${SRCNODE}', dsn := 'host=localhost port=${SRCPORT} dbname=${SRCDB} user=logical_replication')" psql -U hireology -d $SRCDB -c "select pglogical.create_replication_set('dw_repl', true, true, true, true)" psql -U hireology -d $SRCDB -c "select pglogical.replication_set_add_table ('dw_repl', 'accounts', false)" psql -U hireology -d $SRCDB -c "select pglogical.replication_set_add_table ('dw_repl', 'organizations', false)" psql -U hireology -d $SRCDB -c "select pglogical.replication_set_add_sequence ('dw_repl', 'accounts_id_seq', false)" psql -U hireology -d $SRCDB -c "select pglogical.replication_set_add_sequence ('dw_repl', 'organizations_id_seq', false)" Note on the replication_set_add_table command, I'm sending false as the third parameter which should tell it to not copy over the initial data. But when I create the subscription on the target side, I can see in the logs where it is issuing the copy command. And since I have the data already there, I get duplicate key errors and it bombs out. Any suggestions? Thanks, Greig Wise -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html