pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix NULL input behaviour of pg_stat_get_replication_slot(). 2+ messages / 1 participants [nested] [flat]
* pgsql: Fix NULL input behaviour of pg_stat_get_replication_slot(). @ 2022-03-28 04:53 Andres Freund <andres@anarazel.de> 0 siblings, 0 replies; 2+ messages in thread From: Andres Freund @ 2022-03-28 04:53 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Fix NULL input behaviour of pg_stat_get_replication_slot(). @ 2022-03-28 04:53 Andres Freund <andres@anarazel.de> 0 siblings, 0 replies; 2+ messages in thread From: Andres Freund @ 2022-03-28 04:53 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ REL_14_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/c1a0d7d1c4b77d978fe93edc0889589148cbad23 Modified Files -------------- src/backend/utils/adt/pgstatfuncs.c | 11 ++++++++++- src/test/regress/expected/stats.out | 7 +++++++ src/test/regress/sql/stats.sql | 6 ++++++ 3 files changed, 23 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2022-03-28 04:53 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2022-03-28 04:53 pgsql: Fix NULL input behaviour of pg_stat_get_replication_slot(). Andres Freund <andres@anarazel.de> 2022-03-28 04:53 pgsql: Fix NULL input behaviour of pg_stat_get_replication_slot(). Andres Freund <andres@anarazel.de>
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