pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix NULL input behaviour of pg_stat_get_replication_slot().
Date: Mon, 28 Mar 2022 04:53:23 +0000
Message-ID: <E1nYhNa-001hq0-Ny@gemulon.postgresql.org> (raw)

Fix NULL input behaviour of pg_stat_get_replication_slot().

pg_stat_get_replication_slot() accidentally was marked as non-strict, crashing
when called with NULL input. As it's already released, introduce an explicit
NULL check in 14, fix the catalog in HEAD.

Bumps catversion in HEAD.

Discussion: https://postgr.es/m/20220326212432.s5n2maw6kugnpyxw@alap3.anarazel.de
Backpatch: 14-, where replication slot stats were introduced

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/43a7dc96eb363f87286494223861301361ce766c

Modified Files
--------------
src/include/catalog/catversion.h    | 2 +-
src/include/catalog/pg_proc.dat     | 2 +-
src/test/regress/expected/stats.out | 7 +++++++
src/test/regress/sql/stats.sql      | 4 ++++
4 files changed, 13 insertions(+), 2 deletions(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1nYhNa-001hq0-Ny@gemulon.postgresql.org>
Permalink:  ../E1nYhNa-001hq0-Ny@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1nYhNa-001hq0-Ny@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de
  Subject: Re: pgsql: Fix NULL input behaviour of pg_stat_get_replication_slot().
  In-Reply-To: <E1nYhNa-001hq0-Ny@gemulon.postgresql.org>
  References: <E1nYhNa-001hq0-Ny@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