Skip to content

Commit da4b566

Browse files
committed
Mark pg_stat_get_subscription_stats() strict.
It accidentally was marked as non-strict. As it was introduced only in HEAD, we can just fix the catalog. Bumps catversion. Discussion: https://postgr.es/m/20220326212432.s5n2maw6kugnpyxw@alap3.anarazel.de
1 parent 43a7dc9 commit da4b566

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

src/include/catalog/catversion.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@
5353
*/
5454

5555
/* yyyymmddN */
56-
#define CATALOG_VERSION_NO 202203271
56+
#define CATALOG_VERSION_NO 202203272
5757

5858
#endif

src/include/catalog/pg_proc.dat

+1-1
Original file line numberDiff line numberDiff line change
@@ -5377,7 +5377,7 @@
53775377
proargnames => '{slot_name,slot_name,spill_txns,spill_count,spill_bytes,stream_txns,stream_count,stream_bytes,total_txns,total_bytes,stats_reset}',
53785378
prosrc => 'pg_stat_get_replication_slot' },
53795379
{ oid => '8523', descr => 'statistics: information about subscription stats',
5380-
proname => 'pg_stat_get_subscription_stats', proisstrict => 'f',
5380+
proname => 'pg_stat_get_subscription_stats',
53815381
provolatile => 's', proparallel => 'r',
53825382
prorettype => 'record', proargtypes => 'oid',
53835383
proallargtypes => '{oid,oid,int8,int8,timestamptz}',

src/test/regress/expected/stats.out

+6
Original file line numberDiff line numberDiff line change
@@ -262,4 +262,10 @@ SELECT pg_stat_get_replication_slot(NULL);
262262

263263
(1 row)
264264

265+
SELECT pg_stat_get_subscription_stats(NULL);
266+
pg_stat_get_subscription_stats
267+
--------------------------------
268+
269+
(1 row)
270+
265271
-- End of Stats Test

src/test/regress/sql/stats.sql

+1
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ DROP FUNCTION wait_for_hot_stats();
231231

232232
-- ensure that stats accessors handle NULL input correctly
233233
SELECT pg_stat_get_replication_slot(NULL);
234+
SELECT pg_stat_get_subscription_stats(NULL);
234235

235236

236237
-- End of Stats Test

0 commit comments

Comments
 (0)