mirror of
https://github.com/postgres/postgres.git
synced 2025-11-25 12:03:53 +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:
@@ -89,7 +89,7 @@ typedef enum ExtendBufferedFlags
|
||||
|
||||
/* internal flags follow */
|
||||
EB_LOCK_TARGET = (1 << 5),
|
||||
} ExtendBufferedFlags;
|
||||
} ExtendBufferedFlags;
|
||||
|
||||
/*
|
||||
* To identify the relation - either relation or smgr + relpersistence has to
|
||||
|
||||
@@ -314,7 +314,7 @@ typedef struct LOCK
|
||||
LOCKMASK grantMask; /* bitmask for lock types already granted */
|
||||
LOCKMASK waitMask; /* bitmask for lock types awaited */
|
||||
dlist_head procLocks; /* list of PROCLOCK objects assoc. with lock */
|
||||
dclist_head waitProcs; /* list of PGPROC objects waiting on lock */
|
||||
dclist_head waitProcs; /* list of PGPROC objects waiting on lock */
|
||||
int requested[MAX_LOCKMODES]; /* counts of requested locks */
|
||||
int nRequested; /* total of requested[] array */
|
||||
int granted[MAX_LOCKMODES]; /* counts of granted locks */
|
||||
|
||||
@@ -26,10 +26,11 @@ struct PGPROC;
|
||||
/* what state of the wait process is a backend in */
|
||||
typedef enum LWLockWaitState
|
||||
{
|
||||
LW_WS_NOT_WAITING, /* not currently waiting / woken up */
|
||||
LW_WS_WAITING, /* currently waiting */
|
||||
LW_WS_PENDING_WAKEUP, /* removed from waitlist, but not yet signalled */
|
||||
} LWLockWaitState;
|
||||
LW_WS_NOT_WAITING, /* not currently waiting / woken up */
|
||||
LW_WS_WAITING, /* currently waiting */
|
||||
LW_WS_PENDING_WAKEUP, /* removed from waitlist, but not yet
|
||||
* signalled */
|
||||
} LWLockWaitState;
|
||||
|
||||
/*
|
||||
* Code outside of lwlock.c should not manipulate the contents of this
|
||||
|
||||
@@ -196,7 +196,7 @@ typedef struct RWConflictData
|
||||
dlist_node inLink; /* link for list of conflicts in to a sxact */
|
||||
SERIALIZABLEXACT *sxactOut;
|
||||
SERIALIZABLEXACT *sxactIn;
|
||||
} RWConflictData;
|
||||
} RWConflictData;
|
||||
|
||||
typedef struct RWConflictData *RWConflict;
|
||||
|
||||
|
||||
@@ -387,11 +387,11 @@ typedef struct PROC_HDR
|
||||
/* Head of list of free PGPROC structures */
|
||||
dlist_head freeProcs;
|
||||
/* Head of list of autovacuum's free PGPROC structures */
|
||||
dlist_head autovacFreeProcs;
|
||||
dlist_head autovacFreeProcs;
|
||||
/* Head of list of bgworker free PGPROC structures */
|
||||
dlist_head bgworkerFreeProcs;
|
||||
dlist_head bgworkerFreeProcs;
|
||||
/* Head of list of walsender free PGPROC structures */
|
||||
dlist_head walsenderFreeProcs;
|
||||
dlist_head walsenderFreeProcs;
|
||||
/* First pgproc waiting for group XID clear */
|
||||
pg_atomic_uint32 procArrayGroupFirst;
|
||||
/* First pgproc waiting for group transaction status update */
|
||||
|
||||
Reference in New Issue
Block a user