0001-autovacuum-cfi.patch

application/octet-stream

Filename: 0001-autovacuum-cfi.patch
Type: application/octet-stream
Part: 0
Message: Add missing CHECK_FOR_INTERRUPTS in autovacuum catalog scan loops

Patch

Same data as JSON: GET /api/v1/attachments/:id/patch the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes. API reference →
Format: unified
Series: patch 0001
File+
src/backend/postmaster/autovacuum.c 4 0
diff --git a/src/backend/postmaster/autovacuum.c b/src/backend/postmaster/autovacuum.c
index 82061247..90575a52 100644
--- a/src/backend/postmaster/autovacuum.c
+++ b/src/backend/postmaster/autovacuum.c
@@ -2042,6 +2042,8 @@ do_autovacuum(void)
 		bool		wraparound;
 		AutoVacuumScores scores;
 
+		CHECK_FOR_INTERRUPTS();
+
 		if (classForm->relkind != RELKIND_RELATION &&
 			classForm->relkind != RELKIND_MATVIEW)
 			continue;
@@ -2146,6 +2148,8 @@ do_autovacuum(void)
 		bool		wraparound;
 		AutoVacuumScores scores;
 
+		CHECK_FOR_INTERRUPTS();
+
 		/*
 		 * We cannot safely process other backends' temp tables, so skip 'em.
 		 */