aboutsummaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2011-11-08 08:11:25 -0500
committerRobert Haas <rhaas@postgresql.org>2011-11-08 08:11:25 -0500
commit0e1c4b7d974b9ff3b1cd62a9689a8560a8bab60e (patch)
tree874972c36e575e81f6c9e012ad3f67fdf2fb27f1 /src/backend
parentbb1afb528a9154e21fe8ffe7e5c6dbf4a753136c (diff)
downloadpostgresql-0e1c4b7d974b9ff3b1cd62a9689a8560a8bab60e.tar.gz
postgresql-0e1c4b7d974b9ff3b1cd62a9689a8560a8bab60e.zip
Rewrite comment for slightly greater accuracy.
Per an observation from Thom Brown that the old version contained a typo.
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/commands/vacuumlazy.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/commands/vacuumlazy.c b/src/backend/commands/vacuumlazy.c
index bbf8b8d084d..38deddc47c0 100644
--- a/src/backend/commands/vacuumlazy.c
+++ b/src/backend/commands/vacuumlazy.c
@@ -488,8 +488,9 @@ lazy_scan_heap(Relation onerel, LVRelStats *vacrelstats,
if (!ConditionalLockBufferForCleanup(buf))
{
/*
- * It's OK to skip vacuuming a page, as long as its not got data
- * that needs to be cleaned for wraparound avoidance.
+ * If we're not scanning the whole relation to guard against XID
+ * wraparound, it's OK to skip vacuuming a page. The next vacuum
+ * will clean it up.
*/
if (!scan_all)
{