heap_close-cleanup.patch

text/x-patch

Filename: heap_close-cleanup.patch
Type: text/x-patch
Part: 0
Message: [PATCH] Cleanup: use heap_open/heap_close consistently

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
File+
src/backend/commands/cluster.c 1 1
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index 349d130..a10ec2d 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -1551,7 +1551,7 @@ get_tables_to_cluster(MemoryContext cluster_context)
 	}
 	heap_endscan(scan);
 
-	relation_close(indRelation, AccessShareLock);
+	heap_close(indRelation, AccessShareLock);
 
 	return rvs;
 }