aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.h
diff options
context:
space:
mode:
authorPeter Geoghegan <pg@bowt.ie>2022-04-15 15:48:39 -0700
committerPeter Geoghegan <pg@bowt.ie>2022-04-15 15:48:39 -0700
commitd3609dd2547b3ed807bc3b6dd27a008d65e86668 (patch)
tree2b386e741efd3cb3baa41c0e66a2458d34f70a65 /contrib/postgres_fdw/postgres_fdw.h
parent7129a9791eafdd825eae0187b7dd7b99ed48fdc7 (diff)
downloadpostgresql-d3609dd2547b3ed807bc3b6dd27a008d65e86668.tar.gz
postgresql-d3609dd2547b3ed807bc3b6dd27a008d65e86668.zip
Fix multi-table VACUUM VERBOSE accounting.
Per-backend global variables like VacuumPageHit are initialized once per VACUUM command. This was missed by commit 49c9d9fc, which unified VACUUM VERBOSE and autovacuum logging. As a result of that oversight, incorrect values were shown when multiple relations were processed by a single VACUUM VERBOSE command. Relations that happened to be processed later on would show "buffer usage:" values that incorrectly included buffer accesses made while processing earlier unrelated relations. The same accesses were counted multiple times. To fix, take initial values for the tracker variables at the start of heap_vacuum_rel(), and report delta values later on.
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.h')
0 files changed, 0 insertions, 0 deletions