pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Refactor code retrieving string for RecoveryPauseState
Date: Fri, 06 Mar 2026 02:53:48 +0000
Message-ID: <E1vyLK0-002bqp-0P@gemulon.postgresql.org> (raw)

Refactor code retrieving string for RecoveryPauseState

This refactoring is going to be useful in an upcoming commit, to avoid
some code duplication with the function pg_get_wal_replay_pause_state(),
that returns a string for the recovery pause state.

Refactoring opportunity noticed while hacking on a different patch.

Discussion: https://postgr.es/m/CABPTF7W+Nody-+P9y4PNk37-QWuLpfUrEonHuEhrX+Vx9Kq+Kw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/42a12856a6a09e6477a8e9156cfa39cc3a8708e0

Modified Files
--------------
src/backend/access/transam/xlogfuncs.c | 47 ++++++++++++++++++++++------------
1 file changed, 31 insertions(+), 16 deletions(-)



Message-ID: <E1vyLK0-002bqp-0P@gemulon.postgresql.org>
Permalink:  ../E1vyLK0-002bqp-0P@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vyLK0-002bqp-0P@gemulon.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-committers@postgresql.org
  Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Refactor code retrieving string for RecoveryPauseState
  In-Reply-To: <E1vyLK0-002bqp-0P@gemulon.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