]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix NULL input behaviour of pg_stat_get_replication_slot().
authorAndres Freund <andres@anarazel.de>
Mon, 28 Mar 2022 04:39:43 +0000 (21:39 -0700)
committerAndres Freund <andres@anarazel.de>
Mon, 28 Mar 2022 04:44:39 +0000 (21:44 -0700)
commitc1a0d7d1c4b77d978fe93edc0889589148cbad23
treed1221ac4fa4b5151b8bb2f3cf3953618c6fb3491
parent6839aa7a6921d133a51e6162b9ee710ab712293d
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
src/backend/utils/adt/pgstatfuncs.c
src/test/regress/expected/stats.out
src/test/regress/sql/stats.sql