pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add support for pg_stat_reset_slru without argument
Date: Tue, 14 Nov 2023 00:53:49 +0000
Message-ID: <E1r2hgb-005L6Y-BI@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e5cca6288a4098cf731599b5977b0f6714ba0ac6

Modified Files
--------------
doc/src/sgml/monitoring.sgml             | 7 ++++---
src/backend/catalog/system_functions.sql | 7 +++++++
src/include/catalog/catversion.h         | 2 +-
src/include/catalog/pg_proc.dat          | 3 ++-
src/test/regress/expected/stats.out      | 2 +-
src/test/regress/sql/stats.sql           | 2 +-
6 files changed, 16 insertions(+), 7 deletions(-)



Message-ID: <E1r2hgb-005L6Y-BI@gemulon.postgresql.org>
Permalink:  ../E1r2hgb-005L6Y-BI@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1r2hgb-005L6Y-BI@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add support for pg_stat_reset_slru without argument
  In-Reply-To: <E1r2hgb-005L6Y-BI@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox