1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-03 20:02:46 +03:00

Pre-beta mechanical code beautification.

Run pgindent, pgperltidy, and reformat-dat-files.
I manually fixed a couple of comments that pgindent uglified.
This commit is contained in:
Tom Lane
2022-05-12 15:17:30 -04:00
parent 93909599cd
commit 23e7b38bfe
287 changed files with 5193 additions and 3549 deletions

View File

@ -429,6 +429,7 @@ CheckMyDatabase(const char *name, bool am_superuser, bool override_allow_connect
iculocale = NULL;
default_locale.provider = dbform->datlocprovider;
/*
* Default locale is currently always deterministic. Nondeterministic
* locales currently don't support pattern matching, which would break a
@ -604,8 +605,8 @@ BaseInit(void)
InitTemporaryFileAccess();
/*
* Initialize local buffers for WAL record construction, in case we
* ever try to insert XLOG.
* Initialize local buffers for WAL record construction, in case we ever
* try to insert XLOG.
*/
InitXLogInsert();
@ -693,10 +694,10 @@ InitPostgres(const char *in_dbname, Oid dboid, const char *username,
}
/*
* If this is either a bootstrap process or a standalone backend, start
* up the XLOG machinery, and register to have it closed down at exit.
* In other cases, the startup process is responsible for starting up
* the XLOG machinery, and the checkpointer for closing it down.
* If this is either a bootstrap process or a standalone backend, start up
* the XLOG machinery, and register to have it closed down at exit. In
* other cases, the startup process is responsible for starting up the
* XLOG machinery, and the checkpointer for closing it down.
*/
if (!IsUnderPostmaster)
{
@ -1241,7 +1242,8 @@ ShutdownPostgres(int code, Datum arg)
*/
#ifdef USE_ASSERT_CHECKING
{
int held_lwlocks = LWLockHeldCount();
int held_lwlocks = LWLockHeldCount();
if (held_lwlocks)
elog(WARNING, "holding %d lwlocks at the end of ShutdownPostgres()",
held_lwlocks);