Fix NULL input behaviour of pg_stat_get_replication_slot().
Andres Freund <andres@anarazel.de>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/pgstatfuncs.c | modified | +10 −1 |
| src/test/regress/expected/stats.out | modified | +7 −0 |
| src/test/regress/sql/stats.sql | modified | +6 −0 |
Discussion
- pg_stat_get_replication_slot() marked not strict, crashes 10 messages · 2022-03-26 → 2022-03-28