pgsql: Initialize SLRU stats entries to zero.

From: Fujii Masao <fujii(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Initialize SLRU stats entries to zero.
Date: 2020-05-13 13:20:16
Message-ID: E1jYrJ2-00027K-46@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Fujii Masao 2020-05-13 13:21:08 pgsql: Use proper GetDatum function in pg_stat_get_slru().
Previous Message Julien Rouhaud 2020-05-13 11:35:18 Re: Add "-Wimplicit-fallthrough" to default flags