Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eEMwn-0006dE-Bg for pgsql-general@arkaria.postgresql.org; Mon, 13 Nov 2017 22:11:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eEMwm-0005By-Qv for pgsql-general@arkaria.postgresql.org; Mon, 13 Nov 2017 22:11:16 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eEMu1-0005Q1-UM for pgsql-general@postgresql.org; Mon, 13 Nov 2017 22:08:26 +0000 Received: from 80-109-180-71.cable.dynamic.surfer.at ([80.109.180.71] helo=margarita.erven.at) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eEMty-0001A1-Hv for pgsql-general@postgresql.org; Mon, 13 Nov 2017 22:08:24 +0000 Received: from [192.168.27.172] (unknown [192.168.0.1]) by margarita.erven.at (Postfix) with ESMTPSA id 3B3EA7700251 for ; Mon, 13 Nov 2017 23:08:18 +0100 (CET) To: pgsql-general From: Hannes Erven Subject: "Cascading Logical Replication" from a physical replica Message-ID: <67a6df16-278e-bfde-cd70-11f8a8beabef@erven.at> Date: Mon, 13 Nov 2017 23:08:16 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-AT Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org Hi, as of PG10, it is not possible to create logical replication slots on standby servers. Should that fact probably be mentioned more explicitly in https://www.postgresql.org/docs/10/static/logical-replication.html ? There seems to be work by Craig Ringer going on, but that doesn't seem to be arriving soon... https://commitfest.postgresql.org/12/788/ My requirement is to be notified of any row changes (insert/update/delete) that become visible on a standby server through streaming physical replication. Table name and primary key would be sufficient, I don't need the actual row data. And there's no "replication" at all ;-) Is this something that pglogical (https://www.2ndquadrant.com/en/resources/pglogical/ ) or pgxlogdump could provide? The workaround I've come up so far would be: connect logical replication to the master and extract the events I'm interested together with the WAL position of the corresponding TX's commit. Then, send that information to each replica; connect locally and poll the replayed WAL position every second or so. Work on the events that became visible and queue the rest. But this seems to be quite complex compared to just reading the WAL off the standby where it already is, ideally using the logical output plugin interface to format the data. Thanks for any insights! Best regards, -hannes erven -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general