mirror of
https://github.com/postgres/postgres.git
synced 2025-12-01 12:18:01 +03:00
Initial pgindent run for v12.
This is still using the 2.0 version of pg_bsd_indent. I thought it would be good to commit this separately, so as to document the differences between 2.0 and 2.1 behavior. Discussion: https://postgr.es/m/16296.1558103386@sss.pgh.pa.us
This commit is contained in:
@@ -570,9 +570,9 @@ AssignTransactionId(TransactionState s)
|
||||
|
||||
/*
|
||||
* Ensure parent(s) have XIDs, so that a child always has an XID later
|
||||
* than its parent. Mustn't recurse here, or we might get a stack overflow
|
||||
* if we're at the bottom of a huge stack of subtransactions none of which
|
||||
* have XIDs yet.
|
||||
* than its parent. Mustn't recurse here, or we might get a stack
|
||||
* overflow if we're at the bottom of a huge stack of subtransactions none
|
||||
* of which have XIDs yet.
|
||||
*/
|
||||
if (isSubXact && !FullTransactionIdIsValid(s->parent->fullTransactionId))
|
||||
{
|
||||
@@ -2868,8 +2868,8 @@ StartTransactionCommand(void)
|
||||
* just skipping the reset in StartTransaction() won't work.)
|
||||
*/
|
||||
static int save_XactIsoLevel;
|
||||
static bool save_XactReadOnly;
|
||||
static bool save_XactDeferrable;
|
||||
static bool save_XactReadOnly;
|
||||
static bool save_XactDeferrable;
|
||||
|
||||
void
|
||||
SaveTransactionCharacteristics(void)
|
||||
@@ -5193,7 +5193,7 @@ SerializeTransactionState(Size maxsize, char *start_address)
|
||||
nxids = add_size(nxids, s->nChildXids);
|
||||
}
|
||||
Assert(SerializedTransactionStateHeaderSize + nxids * sizeof(TransactionId)
|
||||
<= maxsize);
|
||||
<= maxsize);
|
||||
|
||||
/* Copy them to our scratch space. */
|
||||
workspace = palloc(nxids * sizeof(TransactionId));
|
||||
|
||||
@@ -6397,9 +6397,9 @@ StartupXLOG(void)
|
||||
ereport(FATAL,
|
||||
(errmsg("could not find redo location referenced by checkpoint record"),
|
||||
errhint("If you are restoring from a backup, touch \"%s/recovery.signal\" and add required recovery options.\n"
|
||||
"If you are not restoring from a backup, try removing the file \"%s/backup_label\".\n"
|
||||
"Be careful: removing \"%s/backup_label\" will result in a corrupt cluster if restoring from a backup.",
|
||||
DataDir, DataDir, DataDir)));
|
||||
"If you are not restoring from a backup, try removing the file \"%s/backup_label\".\n"
|
||||
"Be careful: removing \"%s/backup_label\" will result in a corrupt cluster if restoring from a backup.",
|
||||
DataDir, DataDir, DataDir)));
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user