回复: [External]Re: BUG #18540: Does PG16 standby database support function pg_replication_origin_advance? - Mailing list pgsql-bugs

From Jason ChenTJ (CN)
Subject 回复: [External]Re: BUG #18540: Does PG16 standby database support function pg_replication_origin_advance?
Date
Msg-id ZQ0PR01MB1080F9DCA995F5190441F0E292A82@ZQ0PR01MB1080.CHNPR01.prod.partner.outlook.cn
Whole thread Raw
In response to Re: BUG #18540: Does PG16 standby database support function pg_replication_origin_advance?  (Michael Paquier <michael@paquier.xyz>)
Responses Re: 回复: [External]Re: BUG #18540: Does PG16 standby database support function pg_replication_origin_advance?
List pgsql-bugs
Hi Michael,

Thanks for your reply! 


The related source code located on src/backend/replication/logical/origin.c and it's marked as new file .



The error is from this function:  replorigin_check_prerequisites


And you perform the WAL log offset reset function, must do a validation by  replorigin_check_prerequisites.


So am not sure it's a bug or not on standby database, or some dev can fix it on next version? 
(like add some logicals to identify the database role first...)



========================================================================================
On Mon, Jul 15, 2024 at 08:28:26AM +0000, PG Bug reporting form wrote:
> Seems the function pg_replication_origin_advance is not supported running on
> standby instance.  It there any workaround for it?

Not that I know of.  One would need to study how to lift this
restriction in place since the introduction of replication origins in
5aa2350426c4.
--
Michael
========================================================================================



Thanks
Jason

发件人: Michael Paquier <michael@paquier.xyz>
发送时间: 2024年7月16日 9:00
收件人: Jason ChenTJ (CN) <Jason.ChenTJ@homecredit.cn>; pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
主题: [External]Re: BUG #18540: Does PG16 standby database support function pg_replication_origin_advance?
 
This message is from an EXTERNAL SENDER - be CAUTIOUS, particularly with links and attachments.
________________________________

Attachment

pgsql-bugs by date:

Previous
From: Thomas Munro
Date:
Subject: Re: [EXTERNAL] Re: Windows Application Issues | PostgreSQL | REF # 48475607
Next
From: Dean Rasheed
Date:
Subject: Re: BUG #18546: Attempt to insert default into a non-updatable column of a view fails with a dubious error