aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlogutils.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2022-03-24 16:33:13 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2022-03-24 16:33:13 -0400
commitce95c543763b6fade641a67fa0c70649d8527243 (patch)
treebe93c9329bc90681ad7936fce55c16b4f507489e /src/backend/access/transam/xlogutils.c
parent7dac61402e34c6d41d5d11cdc4c6a55f91e24026 (diff)
downloadpostgresql-ce95c543763b6fade641a67fa0c70649d8527243.tar.gz
postgresql-ce95c543763b6fade641a67fa0c70649d8527243.zip
Fix pg_statio_all_tables view for multiple TOAST indexes.
A TOAST table can normally have only one index, but there are corner cases where it has more; for example, transiently during REINDEX CONCURRENTLY. In such a case, the pg_statio_all_tables view produced multiple rows for the owning table, one per TOAST index. Refactor the view to avoid that, instead summing the stats across all the indexes, as we do for regular table indexes. While this has been wrong for a long time, back-patching seems unwise due to the difficulty of putting a system view change into back branches. Andrei Zubkov, tweaked a bit by me Discussion: https://postgr.es/m/acefef4189706971fc475f912c1afdab1c48d627.camel@moonset.ru
Diffstat (limited to 'src/backend/access/transam/xlogutils.c')
0 files changed, 0 insertions, 0 deletions