pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: jason.chentj@homecredit.cn
Subject: BUG #18540: Does PG16  standby database support function pg_replication_origin_advance?
Date: Mon, 15 Jul 2024 08:28:26 +0000
Message-ID: <18540-eb48b78bd306c618@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      18540
Logged by:          Does PG16  standby database support function pg_replication_origin_advance?
Email address:      jason.chentj@homecredit.cn
PostgreSQL version: 16.1
Operating system:   Red Hat Enterprise Linux Server release 7.9
Description:        

Hi Guys, 

am testing the PG 16 VERSION standby database replicate slot function. when
I issue below command to move the offset for replicate slot on standby
database got below error: 

db_plumc=# select
pg_replication_origin_advance('standbyslot','5EE/5D1B13F8'::pg_lsn);
ERROR:  cannot manipulate replication origins during recovery


Seems the function pg_replication_origin_advance is not supported running on
standby instance.  It there any workaround for it? 

  
Thanks
Jason



view thread (2+ messages)  latest in thread

Message-ID: <18540-eb48b78bd306c618@postgresql.org>
Permalink:  ../18540-eb48b78bd306c618@postgresql.org/
Also on:    postgresql.org/message-id/18540-eb48b78bd306c618@postgresql.org

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, jason.chentj@homecredit.cn
  Subject: Re: BUG #18540: Does PG16  standby database support function pg_replication_origin_advance?
  In-Reply-To: <18540-eb48b78bd306c618@postgresql.org>

* 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