aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/spgist/spgxlog.c
diff options
context:
space:
mode:
authorPeter Geoghegan <pg@bowt.ie>2021-05-13 16:07:17 -0700
committerPeter Geoghegan <pg@bowt.ie>2021-05-13 16:07:17 -0700
commitfbe9b80610fe17ed27ee318bdc5ba06ed86b1a71 (patch)
treef19180040e4b6bcb88d37f79197d23f717f31007 /src/backend/access/spgist/spgxlog.c
parentb2d0c7c96711843c6e47fce71335d43127f81647 (diff)
downloadpostgresql-fbe9b80610fe17ed27ee318bdc5ba06ed86b1a71.tar.gz
postgresql-fbe9b80610fe17ed27ee318bdc5ba06ed86b1a71.zip
Fix autovacuum log output heap truncation issue.
The percentage of blocks from the table value reported by autovacuum log output (following commit 5100010ee4d) should never exceed 100% because it describes the state of the table back when lazy_vacuum() was called. The value could nevertheless exceed 100% in the event of heap relation truncation. We failed to compensate for how truncation affects rel_pages. Fix the faulty accounting by using the original rel_pages value instead of the current/final rel_pages value. Reported-By: Andres Freund <andres@anarazel.de> Discussion: https://postgr.es/m/20210423204306.5osfpkt2ggaedyvy@alap3.anarazel.de
Diffstat (limited to 'src/backend/access/spgist/spgxlog.c')
0 files changed, 0 insertions, 0 deletions