aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/init/globals.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-02-10 03:42:45 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-02-10 03:42:45 +0000
commit58f337a3435cd6ac46dfca4ce1a44b837080745e (patch)
tree03e4a309f7ada6914474c02fd9b53df7ab1da975 /src/backend/utils/init/globals.c
parent87bd95638552b8fc1f5f787ce5b862bb6fc2eb80 (diff)
downloadpostgresql-58f337a3435cd6ac46dfca4ce1a44b837080745e.tar.gz
postgresql-58f337a3435cd6ac46dfca4ce1a44b837080745e.zip
Centralize implementation of delay code by creating a pg_usleep()
subroutine in src/port/pgsleep.c. Remove platform dependencies from miscadmin.h and put them in port.h where they belong. Extend recent vacuum cost-based-delay patch to apply to VACUUM FULL, ANALYZE, and non-btree index vacuuming. By the way, where is the documentation for the cost-based-delay patch?
Diffstat (limited to 'src/backend/utils/init/globals.c')
-rw-r--r--src/backend/utils/init/globals.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/backend/utils/init/globals.c b/src/backend/utils/init/globals.c
index f916d013d1c..8bcf48b2f27 100644
--- a/src/backend/utils/init/globals.c
+++ b/src/backend/utils/init/globals.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/init/globals.c,v 1.83 2004/02/06 19:36:18 wieck Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/init/globals.c,v 1.84 2004/02/10 03:42:45 tgl Exp $
*
* NOTES
* Globals used all over the place should be declared here and not
@@ -82,10 +82,11 @@ int work_mem = 1024;
int maintenance_work_mem = 16384;
int NBuffers = 1000;
-int VacuumCostPageHit = 1;
+int VacuumCostPageHit = 1; /* GUC parameters for vacuum */
int VacuumCostPageMiss = 10;
int VacuumCostPageDirty = 20;
int VacuumCostLimit = 200;
-int VacuumCostBalance = 0;
int VacuumCostNaptime = 0;
+
+int VacuumCostBalance = 0; /* working state for vacuum */
bool VacuumCostActive = false;