Mark pg_stat_get_subscription_stats() strict.
authorAndres Freund <andres@anarazel.de>
Mon, 28 Mar 2022 04:47:26 +0000 (21:47 -0700)
committerAndres Freund <andres@anarazel.de>
Mon, 28 Mar 2022 04:47:26 +0000 (21:47 -0700)
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

src/include/catalog/catversion.h
src/include/catalog/pg_proc.dat
src/test/regress/expected/stats.out
src/test/regress/sql/stats.sql

index 706475dfa807e2714c83a031ad0a5f6b3b4ce07f..05c677e8161dc3e36f3e20808c0d9c0d9718c73e 100644 (file)
@@ -53,6 +53,6 @@
  */
 
 /*                         yyyymmddN */
-#define CATALOG_VERSION_NO 202203271
+#define CATALOG_VERSION_NO 202203272
 
 #endif
index a26625f8233e2d64070bbe78d9531ee5eabb6a63..deb00307f6d9fd1671b81193b0e3bddd53766eb0 100644 (file)
   proargnames => '{slot_name,slot_name,spill_txns,spill_count,spill_bytes,stream_txns,stream_count,stream_bytes,total_txns,total_bytes,stats_reset}',
   prosrc => 'pg_stat_get_replication_slot' },
 { oid => '8523', descr => 'statistics: information about subscription stats',
-  proname => 'pg_stat_get_subscription_stats', proisstrict => 'f',
+  proname => 'pg_stat_get_subscription_stats',
   provolatile => 's', proparallel => 'r',
   prorettype => 'record', proargtypes => 'oid',
   proallargtypes => '{oid,oid,int8,int8,timestamptz}',
index dcf48112f649fc841ba4ed881a9c3954c2fdc95a..06a1d2f229b7cc652bd8f92f42b7b0703dc336f3 100644 (file)
@@ -262,4 +262,10 @@ SELECT pg_stat_get_replication_slot(NULL);
  
 (1 row)
 
+SELECT pg_stat_get_subscription_stats(NULL);
+ pg_stat_get_subscription_stats 
+--------------------------------
+(1 row)
+
 -- End of Stats Test
index 076c763451a5d3b7795fe2c4dce9b7a060110050..ae1ec173e32d4d4347fe8633ae29cff0af67f53b 100644 (file)
@@ -231,6 +231,7 @@ DROP FUNCTION wait_for_hot_stats();
 
 -- ensure that stats accessors handle NULL input correctly
 SELECT pg_stat_get_replication_slot(NULL);
+SELECT pg_stat_get_subscription_stats(NULL);
 
 
 -- End of Stats Test