Re: How to test replication without doing a failover

From: Rui DeSousa <rui(at)crazybean(dot)net>
To: Edwin UY <edwin(dot)uy(at)gmail(dot)com>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: How to test replication without doing a failover
Date: 2022-11-12 18:08:26
Message-ID: 1FC5167C-BCEA-49E1-B014-011AD375D836@crazybean.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

> On Nov 12, 2022, at 1:24 AM, Edwin UY <edwin(dot)uy(at)gmail(dot)com> wrote:
>
> If using log shipping, the SQL below will return nothing, is that correct?
>> select * from pg_stat_replication ;

Correct, as you would have the replica consuming WAL files rather than connecting directly to an upstream/master server and consuming the WAL online. That will only show the active connections currently replicating from the given server.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Kenny Bachman 2022-11-15 08:24:51 Sequence last value is different among primary and secondary
Previous Message Ron 2022-11-12 08:37:29 Re: Persistent changes in rolled-back transactions