summaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gist.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/access/gist/gist.c
parent87bd95638552b8fc1f5f787ce5b862bb6fc2eb80 (diff)
downloadpostgresql-58f337a3435cd6ac46dfca4ce1a44b837080745e.tar.gz
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/access/gist/gist.c')
-rw-r--r--src/backend/access/gist/gist.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/access/gist/gist.c b/src/backend/access/gist/gist.c
index 65a10490d1..b117b33f72 100644
--- a/src/backend/access/gist/gist.c
+++ b/src/backend/access/gist/gist.c
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/access/gist/gist.c,v 1.107 2004/01/07 18:56:23 neilc Exp $
+ * $PostgreSQL: pgsql/src/backend/access/gist/gist.c,v 1.108 2004/02/10 03:42:42 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -19,6 +19,7 @@
#include "access/gistscan.h"
#include "access/heapam.h"
#include "catalog/index.h"
+#include "commands/vacuum.h"
#include "miscadmin.h"
@@ -1614,6 +1615,8 @@ gistbulkdelete(PG_FUNCTION_ARGS)
while (index_getnext_indexitem(iscan, ForwardScanDirection))
{
+ vacuum_delay_point();
+
if (callback(&iscan->xs_ctup.t_self, callback_state))
{
ItemPointerData indextup = iscan->currentItemData;