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.92) (envelope-from ) id 1jDMDu-0007nG-6i for pgsql-general@arkaria.postgresql.org; Sun, 15 Mar 2020 05:54:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jDMDr-0002Yl-VS for pgsql-general@arkaria.postgresql.org; Sun, 15 Mar 2020 05:54:03 +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 1jDMDq-0002T2-UT for pgsql-general@lists.postgresql.org; Sun, 15 Mar 2020 05:54:03 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jDMDm-0004q7-9v for pgsql-general@postgresql.org; Sun, 15 Mar 2020 05:54:02 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id C81F822056; Sun, 15 Mar 2020 01:53:55 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 15 Mar 2020 01:53:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=CY7YtPljAgN15uKxAEaKmsS5/Lq/cxDyFAyX0QtGj xw=; b=Y5fQpdGMI4eKboHKcEtE+RbCFWzYCOgaey8oruP80YpzbbeGaIwLQzxEJ up5ErcLW7w5Mdwe/erLKBOoFV32dPhv5lpxBkRpa75Y+O5z3jSesWuPm50oycLoK aEqE0RhoUnKfIm5y89njAGkeIIrEyJ2NoIcJZkQcj6uN3LbyeyS5hVMXvF68HvN5 QaTKqjK8YPCxte+cPQGbQHIm+You8Y5hODHj4WsKHfyJuciYN4baPxzmSQ665SI0 q0GAzTenhwH1ehBJ/P4XT95uTnkGgoIEqB6Sd/jWI2Ild3fL1RCcJ7Se10UH7bRw f4fbFMpdzyRXQD6oTwZVdyHduzPsw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudeftddgkeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhfhokffffgggjggtgfesth ejredttdefjeenucfhrhhomheprfgvthgvrhcugfhishgvnhhtrhgruhhtuceophgvthgv rhdrvghishgvnhhtrhgruhhtsedvnhguqhhurggurhgrnhhtrdgtohhmqeenucffohhmrg hinhepvdhnughquhgrughrrghnthdrtghomhenucfkphepleefrddvgedvrddvudefrddv gedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepph gvthgvrhdrvghishgvnhhtrhgruhhtsedvnhguqhhurggurhgrnhhtrdgtohhm X-ME-Proxy: Received: from april.pezone.net (p5df2d5f1.dip0.t-ipconnect.de [93.242.213.241]) by mail.messagingengine.com (Postfix) with ESMTPA id F02F930614FA; Sun, 15 Mar 2020 01:53:54 -0400 (EDT) Subject: Re: Reading WALs To: PegoraroF10 , pgsql-general@postgresql.org References: <1584193735733-0.post@n3.nabble.com> From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <897a6123-b310-d721-543c-d4bb98cfd99c@2ndquadrant.com> Date: Sun, 15 Mar 2020 06:53:53 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1584193735733-0.post@n3.nabble.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-03-14 14:48, PegoraroF10 wrote: > On my built in logical replication I see that sometimes it tooks a long time > to be updated with master. The question is how can I see what is being done > on replica ? I know I can have a WAL reader, I tried WAL2JSON, it listen all > data which comes from master, but as I understood when I use that plugin > that data is discarded, so, not replicated. > > Is that correct ? Can I see what is coming to replica server and apply that > change to server as usual ? You can have multiple logical decoding streams in parallel that track their position independently of each other. So you can have a logical replication stream and wal2json next to each other, and they won't interfere with each other. So what you are considering is possible and safe. (I don't know whether it will give you satisfactory insights.) -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services