summaryrefslogtreecommitdiff
path: root/src/include/miscadmin.h
diff options
context:
space:
mode:
authorAlvaro Herrera2020-02-05 19:59:29 +0000
committerAlvaro Herrera2020-02-05 19:59:29 +0000
commit15d13e82911f7cc9f04f0bf419a96fd827fd1a9d (patch)
tree9cec1be6ea28c42c5b94cc5bcba58d993077f64e /src/include/miscadmin.h
parent75cdf24ec3f812b2c52e0f47286665f9c8ced24b (diff)
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/include/miscadmin.h')
-rw-r--r--src/include/miscadmin.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/miscadmin.h b/src/include/miscadmin.h
index 62d64aa0a1..f985453ec3 100644
--- a/src/include/miscadmin.h
+++ b/src/include/miscadmin.h
@@ -252,9 +252,9 @@ extern int VacuumCostPageDirty;
extern int VacuumCostLimit;
extern double VacuumCostDelay;
-extern int VacuumPageHit;
-extern int VacuumPageMiss;
-extern int VacuumPageDirty;
+extern int64 VacuumPageHit;
+extern int64 VacuumPageMiss;
+extern int64 VacuumPageDirty;
extern int VacuumCostBalance;
extern bool VacuumCostActive;