1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-24 00:23:06 +03:00

Split PruneFreezeParams initializers to one field per line

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
This commit is contained in:
Melanie Plageman
2025-11-20 17:36:40 -05:00
parent 5d4dc112c7
commit 1e14edcea5
2 changed files with 14 additions and 6 deletions

View File

@@ -269,9 +269,13 @@ heap_page_prune_opt(Relation relation, Buffer buffer)
* cannot safely determine that during on-access pruning with the * cannot safely determine that during on-access pruning with the
* current implementation. * current implementation.
*/ */
PruneFreezeParams params = {.relation = relation,.buffer = buffer, PruneFreezeParams params = {
.reason = PRUNE_ON_ACCESS,.options = 0, .relation = relation,
.vistest = vistest,.cutoffs = NULL .buffer = buffer,
.reason = PRUNE_ON_ACCESS,
.options = 0,
.vistest = vistest,
.cutoffs = NULL,
}; };
heap_page_prune_and_freeze(&params, &presult, &dummy_off_loc, heap_page_prune_and_freeze(&params, &presult, &dummy_off_loc,

View File

@@ -1965,9 +1965,13 @@ lazy_scan_prune(LVRelState *vacrel,
{ {
Relation rel = vacrel->rel; Relation rel = vacrel->rel;
PruneFreezeResult presult; PruneFreezeResult presult;
PruneFreezeParams params = {.relation = rel,.buffer = buf, PruneFreezeParams params = {
.reason = PRUNE_VACUUM_SCAN,.options = HEAP_PAGE_PRUNE_FREEZE, .relation = rel,
.vistest = vacrel->vistest,.cutoffs = &vacrel->cutoffs .buffer = buf,
.reason = PRUNE_VACUUM_SCAN,
.options = HEAP_PAGE_PRUNE_FREEZE,
.vistest = vacrel->vistest,
.cutoffs = &vacrel->cutoffs,
}; };
Assert(BufferGetBlockNumber(buf) == blkno); Assert(BufferGetBlockNumber(buf) == blkno);