From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: PegoraroF10 <marcos@f10.com.br>
To: pgsql-general@postgresql.org
Subject: Re: Reading WALs
Date: Sun, 15 Mar 2020 06:53:53 +0100
Message-ID: <897a6123-b310-d721-543c-d4bb98cfd99c@2ndquadrant.com> (raw)
In-Reply-To: <1584193735733-0.post@n3.nabble.com>
References: <1584193735733-0.post@n3.nabble.com>
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
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: peter.eisentraut@2ndquadrant.com, marcos@f10.com.br
Subject: Re: Reading WALs
In-Reply-To: <897a6123-b310-d721-543c-d4bb98cfd99c@2ndquadrant.com>
References: <1584193735733-0.post@n3.nabble.com> <897a6123-b310-d721-543c-d4bb98cfd99c@2ndquadrant.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