v20251001-0012-BufFileLoadBuffer-comment-update.patch

text/x-patch

Filename: v20251001-0012-BufFileLoadBuffer-comment-update.patch
Type: text/x-patch
Part: 11
Message: Re: Proposal: Adding compression of temporary files

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: format-patch
Series: patch v20251001-0012
Subject: BufFileLoadBuffer - comment update
File+
src/backend/storage/file/buffile.c 1 1
From 82d0a31ce2e91c1e536aa7b4dcb66c965fe05b83 Mon Sep 17 00:00:00 2001
From: Tomas Vondra <tomas@vondra.me>
Date: Mon, 29 Sep 2025 22:59:10 +0200
Subject: [PATCH v20251001 12/25] BufFileLoadBuffer - comment update

---
 src/backend/storage/file/buffile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/backend/storage/file/buffile.c b/src/backend/storage/file/buffile.c
index 932c10351bc..985e297ad25 100644
--- a/src/backend/storage/file/buffile.c
+++ b/src/backend/storage/file/buffile.c
@@ -604,7 +604,7 @@ BufFileLoadBuffer(BufFile *file)
 		}
 		else
 		{
-			/* A long life buffer limits number of memory allocations */
+			/* read length of compressed data, read and decompress data */
 			char	   *buff = file->cBuffer;
 			int			original_size = 0;
 			int			header_advance = sizeof(nbytes);
-- 
2.51.0