Re: [Patch] Fix pg_get_multixact_stats() over-reporting members on a hot standby

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Naga Appani <nagnrik(at)gmail(dot)com>
Cc: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, pgsql-hackers(at)lists(dot)postgresql(dot)org, Noah Misch <noah(at)leadboat(dot)com>
Subject: Re: [Patch] Fix pg_get_multixact_stats() over-reporting members on a hot standby
Date: 2026-09-24 00:06:16
Message-ID: arRpeGsEQrTbRC0w@paquier.xyz
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Sep 21, 2026 at 10:55:02AM -0500, Naga Appani wrote:
> I lean toward ERROR over NULL, but not strongly.

I'll go switch that to an error if called while RecoveryInProgress(),
then. Bonus points regarding the fact that we can reuse some of the
existing error messages from xlogfuncs.c, meaning no extra translation
required.
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message shihao zhong 2026-09-24 00:39:08 Re: Add a permission check to pg_stat_get_backend_subxact()
Previous Message Etsuro Fujita 2026-09-23 23:58:38 Re: Several issues with postgres_fdw stats import