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: Fix pg_stat_reset_single_table_counters() for shared relations
Date: Mon, 21 Aug 2023 04:33:31 +0000
Message-ID: <E1qXwbb-0004ac-9m@gemulon.postgresql.org> (raw)

Fix pg_stat_reset_single_table_counters() for shared relations

This commit fixes the function of $subject for shared relations.  This
feature has been added by e042678.  Unfortunately, this new behavior got
removed by 5891c7a when moving statistics to shared memory.

Reported-by: Mitsuru Hinata
Author: Masahiro Ikeda
Reviewed-by: Kyotaro Horiguchi, Masahiko Sawada
Discussion: https://postgr.es/m/7cc69f863d9b1bc677544e3accd0e4b4@oss.nttdata.com
Backpatch-through: 15

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6fde2d9a005a5bc04aa059d3faeb865c8dd322ce

Modified Files
--------------
src/backend/utils/adt/pgstatfuncs.c |  9 ++++++--
src/test/regress/expected/stats.out | 46 +++++++++++++++++++++++++++++++++++++
src/test/regress/sql/stats.sql      | 30 ++++++++++++++++++++++++
3 files changed, 83 insertions(+), 2 deletions(-)



view thread (3+ messages)  latest in thread

Message-ID: <E1qXwbb-0004ac-9m@gemulon.postgresql.org>
Permalink:  ../E1qXwbb-0004ac-9m@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1qXwbb-0004ac-9m@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: Fix pg_stat_reset_single_table_counters() for shared relations
  In-Reply-To: <E1qXwbb-0004ac-9m@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