From 1e14edcea5e1a122d4bf76d30fc963715e4dfe5e Mon Sep 17 00:00:00 2001 From: Melanie Plageman Date: Thu, 20 Nov 2025 17:36:40 -0500 Subject: [PATCH] Split PruneFreezeParams initializers to one field per line MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This conforms more closely with the style of other struct initializers in the code base. Initializing multiple fields on a single line is unpopular in part because pgindent won't permit a space after the comma before the next field's period. Author: Melanie Plageman Reported-by: Dagfinn Ilmari MannsÃ¥ker Discussion: https://postgr.es/m/87see87fnq.fsf%40wibble.ilmari.org --- src/backend/access/heap/pruneheap.c | 10 +++++++--- src/backend/access/heap/vacuumlazy.c | 10 +++++++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/backend/access/heap/pruneheap.c b/src/backend/access/heap/pruneheap.c index 1850476dcd8..0d6311088ea 100644 --- a/src/backend/access/heap/pruneheap.c +++ b/src/backend/access/heap/pruneheap.c @@ -269,9 +269,13 @@ heap_page_prune_opt(Relation relation, Buffer buffer) * cannot safely determine that during on-access pruning with the * current implementation. */ - PruneFreezeParams params = {.relation = relation,.buffer = buffer, - .reason = PRUNE_ON_ACCESS,.options = 0, - .vistest = vistest,.cutoffs = NULL + PruneFreezeParams params = { + .relation = relation, + .buffer = buffer, + .reason = PRUNE_ON_ACCESS, + .options = 0, + .vistest = vistest, + .cutoffs = NULL, }; heap_page_prune_and_freeze(¶ms, &presult, &dummy_off_loc, diff --git a/src/backend/access/heap/vacuumlazy.c b/src/backend/access/heap/vacuumlazy.c index 7a6d6f42634..65bb0568a86 100644 --- a/src/backend/access/heap/vacuumlazy.c +++ b/src/backend/access/heap/vacuumlazy.c @@ -1965,9 +1965,13 @@ lazy_scan_prune(LVRelState *vacrel, { Relation rel = vacrel->rel; PruneFreezeResult presult; - PruneFreezeParams params = {.relation = rel,.buffer = buf, - .reason = PRUNE_VACUUM_SCAN,.options = HEAP_PAGE_PRUNE_FREEZE, - .vistest = vacrel->vistest,.cutoffs = &vacrel->cutoffs + PruneFreezeParams params = { + .relation = rel, + .buffer = buf, + .reason = PRUNE_VACUUM_SCAN, + .options = HEAP_PAGE_PRUNE_FREEZE, + .vistest = vacrel->vistest, + .cutoffs = &vacrel->cutoffs, }; Assert(BufferGetBlockNumber(buf) == blkno);