From: | Andres Freund <andres(at)anarazel(dot)de> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Fix NULL input behaviour of pg_stat_get_replication_slot(). |
Date: | 2022-03-28 04:53:23 |
Message-ID: | E1nYhNa-001hq0-Ny@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2022-03-28 05:37:01 | pgsql: Don't fail for > 1 walsenders in 019_replslot_limit, add debug m |
Previous Message | Thomas Munro | 2022-03-28 03:27:24 | pgsql: Fix pg_waldump docs. |