Add support for pg_stat_reset_slru without argument
authorMichael Paquier <michael@paquier.xyz>
Tue, 14 Nov 2023 00:50:52 +0000 (09:50 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 14 Nov 2023 00:50:52 +0000 (09:50 +0900)
commite5cca6288a4098cf731599b5977b0f6714ba0ac6
treea4b79179ae0ab97b369e860dbd6717d87066474f
parenta70f2a57f233244c0a780829baf48c624187d456
Add support for pg_stat_reset_slru without argument

pg_stat_reset_slru currently requires an input argument, either:
- NULL to reset the SLRU counters of everything.
- A specific value to reset a single SLRU cache.

This commit adds support for a new pattern: pg_stat_reset_slru without
any argument works the same way as pg_stat_reset_slru(NULL), relying on
a DEFAULT in the function definition to handle this case.  This makes
the function more consistent with 23c8c0c8f472.

Bump catalog version.

Author: Bharath Rupireddy
Reviewed-by: Atsushi Torikoshi
Discussion: https://postgr.es/m/CALj2ACW1VizYg01EeH_cA-7qA+4NzWVAoZ5Lw9_XYO1RRHAZbA@mail.gmail.com
doc/src/sgml/monitoring.sgml
src/backend/catalog/system_functions.sql
src/include/catalog/catversion.h
src/include/catalog/pg_proc.dat
src/test/regress/expected/stats.out
src/test/regress/sql/stats.sql