diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2020-02-05 16:59:29 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2020-02-05 16:59:29 -0300 |
commit | 15d13e82911f7cc9f04f0bf419a96fd827fd1a9d (patch) | |
tree | 9cec1be6ea28c42c5b94cc5bcba58d993077f64e /src/backend/utils/init/globals.c | |
parent | 75cdf24ec3f812b2c52e0f47286665f9c8ced24b (diff) | |
download | postgresql-15d13e82911f7cc9f04f0bf419a96fd827fd1a9d.tar.gz postgresql-15d13e82911f7cc9f04f0bf419a96fd827fd1a9d.zip |
Make vacuum buffer counters 64 bits wide
Using 32 bit counters means they can now realistically wrap around when
vacuuming extremely large tables. Because they're signed integers,
stats printed by vacuum look very odd when they do.
We'd love to backpatch this, but refrain because the variables are
exported and could cause third-party code to break.
Reviewed-by: Julien Rouhaud, Tom Lane, Michael Paquier
Discussion: https://postgr.es/m/20200131205926.GA16367@alvherre.pgsql
Diffstat (limited to 'src/backend/utils/init/globals.c')
-rw-r--r-- | src/backend/utils/init/globals.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/utils/init/globals.c b/src/backend/utils/init/globals.c index b1f6291b99e..eb196444198 100644 --- a/src/backend/utils/init/globals.c +++ b/src/backend/utils/init/globals.c @@ -140,9 +140,9 @@ int VacuumCostPageDirty = 20; int VacuumCostLimit = 200; double VacuumCostDelay = 0; -int VacuumPageHit = 0; -int VacuumPageMiss = 0; -int VacuumPageDirty = 0; +int64 VacuumPageHit = 0; +int64 VacuumPageMiss = 0; +int64 VacuumPageDirty = 0; int VacuumCostBalance = 0; /* working state for vacuum */ bool VacuumCostActive = false; |