pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add 'no_error' argument to pg_wal_replay_wait()
Date: Thu, 24 Oct 2024 12:04:14 +0000
Message-ID: <E1t3wZa-002Dtg-PT@gemulon.postgresql.org> (raw)

Add 'no_error' argument to pg_wal_replay_wait()

This argument allow skipping throwing an error.  Instead, the result status
can be obtained using pg_wal_replay_wait_status() function.

Catversion is bumped.

Reported-by: Michael Paquier
Discussion: https://postgr.es/m/ZtUF17gF0pNpwZDI%40paquier.xyz
Reviewed-by: Pavel Borisov

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e546989a269d5d73d283901aadcfda8c6d98e87b

Modified Files
--------------
doc/src/sgml/func.sgml                     | 56 ++++++++++++++++++++++++++----
src/backend/access/transam/xlogfuncs.c     | 38 +++++++++++++++++---
src/backend/access/transam/xlogwait.c      |  3 +-
src/backend/catalog/system_functions.sql   |  4 ++-
src/include/catalog/catversion.h           |  2 +-
src/include/catalog/pg_proc.dat            |  7 +++-
src/test/recovery/t/043_wal_replay_wait.pl | 22 ++++++++++++
7 files changed, 118 insertions(+), 14 deletions(-)



Message-ID: <E1t3wZa-002Dtg-PT@gemulon.postgresql.org>
Permalink:  ../E1t3wZa-002Dtg-PT@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1t3wZa-002Dtg-PT@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: akorotkov@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add 'no_error' argument to pg_wal_replay_wait()
  In-Reply-To: <E1t3wZa-002Dtg-PT@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