Fix pg_stat_reset_single_table_counters() for shared relations

Michael Paquier <michael@paquier.xyz>

Commit: 6fde2d9a005a5bc04aa059d3faeb865c8dd322ce
Author: Michael Paquier <michael@paquier.xyz>
Date: 2023-08-21T04:32:14Z
Releases: 17.0
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

Files

Discussion