pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Initialize SLRU stats entries to zero.
Date: Wed, 13 May 2020 13:20:16 +0000
Message-ID: <E1jYrJ2-00027K-46@gemulon.postgresql.org> (raw)

Initialize SLRU stats entries to zero.

Previously since SLRUStats was not initialized, SLRU stats counters
could begin with non-zero value. Which could lead to incorrect results
in pg_stat_slru view.

Author: Fujii Masao
Reviewed-by: Tomas Vondra
Discussion: https://postgr.es/m/976bbb73-a112-de3c-c488-b34b64609793@oss.nttdata.com

Branch
------
master

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

Modified Files
--------------
src/backend/postmaster/pgstat.c | 3 +++
1 file changed, 3 insertions(+)



Message-ID: <E1jYrJ2-00027K-46@gemulon.postgresql.org>
Permalink:  ../E1jYrJ2-00027K-46@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jYrJ2-00027K-46@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: fujii@postgresql.org
  Subject: Re: pgsql: Initialize SLRU stats entries to zero.
  In-Reply-To: <E1jYrJ2-00027K-46@gemulon.postgresql.org>
  References: <E1jYrJ2-00027K-46@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