diff --git a/src/backend/commands/vacuumlazy.c b/src/backend/commands/vacuumlazy.c
index 8996d366e9..436d573454 100644
--- a/src/backend/commands/vacuumlazy.c
+++ b/src/backend/commands/vacuumlazy.c
@@ -249,6 +249,21 @@ lazy_vacuum_rel(Relation onerel, int options, VacuumParams *params,
 	if (options & VACOPT_DISABLE_PAGE_SKIPPING)
 		aggressive = true;
 
+	/*
+	 * When is_wraparound, relfrozenxid is old enough and aggressive must be
+	 * true here. However, if another concurrent vacuum process has processed
+	 * this relation, relfrozenxid in relcache can be moved forward enough so
+	 * that aggressive is calculated as false here. This relation no longer
+	 * needs to be vacuumed. Bail out.
+	 */
+	if (params->is_wraparound && !aggressive)
+	{
+		elog(DEBUG1, "relation %d has been vacuumd ocncurrently, skip",
+			onerel->rd_id);
+		return;
+	}
+
+
 	vacrelstats = (LVRelStats *) palloc0(sizeof(LVRelStats));
 
 	vacrelstats->old_rel_pages = onerel->rd_rel->relpages;
