]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix pg_stat_reset_single_table_counters() for shared relations
authorMichael Paquier <michael@paquier.xyz>
Mon, 21 Aug 2023 04:33:04 +0000 (13:33 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 21 Aug 2023 04:33:04 +0000 (13:33 +0900)
commitd6af45052dc8a9d97a18e1a3b9febabd891ba270
tree87aa64bd57cc37eebffd98317988dc427853f3eb
parentdd2a731d9caffa8c9f6d82f2b72dd460b67decd7
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
src/backend/utils/adt/pgstatfuncs.c
src/test/regress/expected/stats.out
src/test/regress/sql/stats.sql