mirror of
https://github.com/postgres/postgres.git
synced 2025-11-24 00:23:06 +03:00
Initial pgindent and pgperltidy run for v13.
Includes some manual cleanup of places that pgindent messed up,
most of which weren't per project style anyway.
Notably, it seems some people didn't absorb the style rules of
commit c9d297751, because there were a bunch of new occurrences
of function calls with a newline just after the left paren, all
with faulty expectations about how the rest of the call would get
indented.
This commit is contained in:
@@ -280,8 +280,8 @@ RelationTruncate(Relation rel, BlockNumber nblocks)
|
||||
bool vm;
|
||||
bool need_fsm_vacuum = false;
|
||||
ForkNumber forks[MAX_FORKNUM];
|
||||
BlockNumber blocks[MAX_FORKNUM];
|
||||
int nforks = 0;
|
||||
BlockNumber blocks[MAX_FORKNUM];
|
||||
int nforks = 0;
|
||||
|
||||
/* Open it at the smgr level if not already done */
|
||||
RelationOpenSmgr(rel);
|
||||
@@ -298,7 +298,7 @@ RelationTruncate(Relation rel, BlockNumber nblocks)
|
||||
blocks[nforks] = nblocks;
|
||||
nforks++;
|
||||
|
||||
/* Prepare for truncation of the FSM if it exists */
|
||||
/* Prepare for truncation of the FSM if it exists */
|
||||
fsm = smgrexists(rel->rd_smgr, FSM_FORKNUM);
|
||||
if (fsm)
|
||||
{
|
||||
@@ -367,9 +367,9 @@ RelationTruncate(Relation rel, BlockNumber nblocks)
|
||||
smgrtruncate(rel->rd_smgr, forks, nforks, blocks);
|
||||
|
||||
/*
|
||||
* Update upper-level FSM pages to account for the truncation.
|
||||
* This is important because the just-truncated pages were likely
|
||||
* marked as all-free, and would be preferentially selected.
|
||||
* Update upper-level FSM pages to account for the truncation. This is
|
||||
* important because the just-truncated pages were likely marked as
|
||||
* all-free, and would be preferentially selected.
|
||||
*/
|
||||
if (need_fsm_vacuum)
|
||||
FreeSpaceMapVacuumRange(rel, nblocks, InvalidBlockNumber);
|
||||
@@ -923,8 +923,8 @@ smgr_redo(XLogReaderState *record)
|
||||
SMgrRelation reln;
|
||||
Relation rel;
|
||||
ForkNumber forks[MAX_FORKNUM];
|
||||
BlockNumber blocks[MAX_FORKNUM];
|
||||
int nforks = 0;
|
||||
BlockNumber blocks[MAX_FORKNUM];
|
||||
int nforks = 0;
|
||||
bool need_fsm_vacuum = false;
|
||||
|
||||
reln = smgropen(xlrec->rnode, InvalidBackendId);
|
||||
@@ -995,9 +995,9 @@ smgr_redo(XLogReaderState *record)
|
||||
smgrtruncate(reln, forks, nforks, blocks);
|
||||
|
||||
/*
|
||||
* Update upper-level FSM pages to account for the truncation.
|
||||
* This is important because the just-truncated pages were likely
|
||||
* marked as all-free, and would be preferentially selected.
|
||||
* Update upper-level FSM pages to account for the truncation. This is
|
||||
* important because the just-truncated pages were likely marked as
|
||||
* all-free, and would be preferentially selected.
|
||||
*/
|
||||
if (need_fsm_vacuum)
|
||||
FreeSpaceMapVacuumRange(rel, xlrec->blkno,
|
||||
|
||||
Reference in New Issue
Block a user