aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/index
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2006-02-11 16:59:09 +0000
committerBruce Momjian <bruce@momjian.us>2006-02-11 16:59:09 +0000
commitbf324946b32736da1b128b1e742515879b42a4e8 (patch)
treed1a9560e621c4423a40dfef2fc5dcfda183dfbeb /src/backend/access/index
parent85d8ee846b6b645cdf07d948aabc807aa755deac (diff)
downloadpostgresql-bf324946b32736da1b128b1e742515879b42a4e8.tar.gz
postgresql-bf324946b32736da1b128b1e742515879b42a4e8.zip
Allow VACUUM to complete faster by avoiding scanning the indexes when no
rows were removed from the heap by the VACUUM. Simon Riggs
Diffstat (limited to 'src/backend/access/index')
-rw-r--r--src/backend/access/index/indexam.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/backend/access/index/indexam.c b/src/backend/access/index/indexam.c
index c1e61ff2bda..0365ae79424 100644
--- a/src/backend/access/index/indexam.c
+++ b/src/backend/access/index/indexam.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/access/index/indexam.c,v 1.87 2005/12/03 05:51:00 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/access/index/indexam.c,v 1.88 2006/02/11 16:59:09 momjian Exp $
*
* INTERFACE ROUTINES
* index_open - open an index relation by relation OID
@@ -685,6 +685,11 @@ index_getmulti(IndexScanDesc scan,
* callback routine tells whether a given main-heap tuple is
* to be deleted
*
+ * passing NULL callback_state can be interpreted by the
+ * index access method as meaning that the index does not need
+ * to be scanned in logical sequence to remove rows for this call
+ * index_vacuum_cleanup is always required after this, however.
+ *
* return value is an optional palloc'd struct of statistics
* ----------------
*/