Split PruneFreezeParams initializers to one field per line
authorMelanie Plageman <melanieplageman@gmail.com>
Thu, 20 Nov 2025 22:36:40 +0000 (17:36 -0500)
committerMelanie Plageman <melanieplageman@gmail.com>
Thu, 20 Nov 2025 22:36:40 +0000 (17:36 -0500)
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 <melanieplageman@gmail.com>
Reported-by: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Discussion: https://postgr.es/m/87see87fnq.fsf%40wibble.ilmari.org

src/backend/access/heap/pruneheap.c
src/backend/access/heap/vacuumlazy.c

index 1850476dcd878f6cf11c197f720bb82f08e74255..0d6311088eac219f9f9bfea0de85b0c6cf7334a5 100644 (file)
@@ -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(&params, &presult, &dummy_off_loc,
index 7a6d6f4263467d5c35fd74426e2520a770bd9240..65bb0568a867c7f498c43b2132e7fd82d0aca70e 100644 (file)
@@ -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);