pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix issues in binary_upgrade_logical_slot_has_caught_up().
Date: Thu, 07 Dec 2023 03:24:39 +0000
Message-ID: <E1rB50B-008xjk-Bo@gemulon.postgresql.org> (raw)

Fix issues in binary_upgrade_logical_slot_has_caught_up().

The commit 29d0a77fa6 labelled binary_upgrade_logical_slot_has_caught_up()
as a non-strict function to allow providing a better error message to callers
in case the passed slot_name is NULL. On further discussion, it seems that
it is not helpful to have a different error message for NULL input in this
function, so this patch marks the function as strict.

This patch also removes the explicit permission check to use replication
slots as this function is invoked only by superusers and instead adds an
Assert.

Reported-by: Masahiko Sawada
Author: Hayato Kuroda
Reviewed-by: Vignesh C
Discussion: https://postgr.es/m/CAD21AoDSyiBKkMXBxN_gUayZZUCOgyHnG8Ge8rcPXNP3Tf6B4g@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0bf62460bb9e86101d24e31e915c2e8922675296

Modified Files
--------------
src/backend/utils/adt/pg_upgrade_support.c | 10 +++++-----
src/include/catalog/catversion.h           |  2 +-
src/include/catalog/pg_proc.dat            |  5 ++---
3 files changed, 8 insertions(+), 9 deletions(-)



Message-ID: <E1rB50B-008xjk-Bo@gemulon.postgresql.org>
Permalink:  ../E1rB50B-008xjk-Bo@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rB50B-008xjk-Bo@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: akapila@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Fix issues in binary_upgrade_logical_slot_has_caught_up().
  In-Reply-To: <E1rB50B-008xjk-Bo@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