Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitda4b566

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 parent43a7dc9 commitda4b566

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

‎src/include/catalog/catversion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@
5353
*/
5454

5555
/*yyyymmddN */
56-
#defineCATALOG_VERSION_NO202203271
56+
#defineCATALOG_VERSION_NO202203272
5757

5858
#endif

‎src/include/catalog/pg_proc.dat

Lines changed: 1 addition & 1 deletion
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

Lines changed: 6 additions & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp