mirror of
https://github.com/postgres/postgres.git
synced 2025-10-15 05:46:52 +03:00
Pre-beta mechanical code beautification.
Run pgindent, pgperltidy, and reformat-dat-files. This set of diffs is a bit larger than typical. We've updated to pg_bsd_indent 2.1.2, which properly indents variable declarations that have multi-line initialization expressions (the continuation lines are now indented one tab stop). We've also updated to perltidy version 20230309 and changed some of its settings, which reduces its desire to add whitespace to lines to make assignments etc. line up. Going forward, that should make for fewer random-seeming changes to existing code. Discussion: https://postgr.es/m/20230428092545.qfb3y5wcu4cm75ur@alvherre.pgsql
This commit is contained in:
@@ -5460,8 +5460,8 @@ StartupXLOG(void)
|
||||
missingContrecPtr = endOfRecoveryInfo->missingContrecPtr;
|
||||
|
||||
/*
|
||||
* Reset ps status display, so as no information related to recovery
|
||||
* shows up.
|
||||
* Reset ps status display, so as no information related to recovery shows
|
||||
* up.
|
||||
*/
|
||||
set_ps_display("");
|
||||
|
||||
@@ -5596,9 +5596,9 @@ StartupXLOG(void)
|
||||
if (!XLogRecPtrIsInvalid(missingContrecPtr))
|
||||
{
|
||||
/*
|
||||
* We should only have a missingContrecPtr if we're not switching to
|
||||
* a new timeline. When a timeline switch occurs, WAL is copied from
|
||||
* the old timeline to the new only up to the end of the last complete
|
||||
* We should only have a missingContrecPtr if we're not switching to a
|
||||
* new timeline. When a timeline switch occurs, WAL is copied from the
|
||||
* old timeline to the new only up to the end of the last complete
|
||||
* record, so there can't be an incomplete WAL record that we need to
|
||||
* disregard.
|
||||
*/
|
||||
@@ -8494,7 +8494,7 @@ do_pg_backup_start(const char *backupidstr, bool fast, List **tablespaces,
|
||||
*/
|
||||
if (rllen > datadirpathlen &&
|
||||
strncmp(linkpath, DataDir, datadirpathlen) == 0 &&
|
||||
IS_DIR_SEP(linkpath[datadirpathlen]))
|
||||
IS_DIR_SEP(linkpath[datadirpathlen]))
|
||||
relpath = pstrdup(linkpath + datadirpathlen + 1);
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user