1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-28 18:48:04 +03:00

pgindent run before PG 9.1 beta 1.

This commit is contained in:
Bruce Momjian
2011-04-10 11:42:00 -04:00
parent 9a8b73147c
commit bf50caf105
446 changed files with 5737 additions and 5258 deletions

View File

@@ -35,7 +35,7 @@ typedef enum ReplNodeTag
typedef struct IdentifySystemCmd
{
NodeTag type;
} IdentifySystemCmd;
} IdentifySystemCmd;
/* ----------------------
@@ -46,7 +46,7 @@ typedef struct BaseBackupCmd
{
NodeTag type;
List *options;
} BaseBackupCmd;
} BaseBackupCmd;
/* ----------------------
@@ -57,6 +57,6 @@ typedef struct StartReplicationCmd
{
NodeTag type;
XLogRecPtr startpoint;
} StartReplicationCmd;
} StartReplicationCmd;
#endif /* REPLNODES_H */

View File

@@ -44,7 +44,7 @@ extern void SyncRepReleaseWaiters(void);
extern void SyncRepUpdateSyncStandbysDefined(void);
/* called by various procs */
extern int SyncRepWakeQueue(bool all);
extern int SyncRepWakeQueue(bool all);
extern bool check_synchronous_standby_names(char **newval, void **extra, GucSource source);
#endif /* _SYNCREP_H */

View File

@@ -48,9 +48,9 @@ typedef struct
typedef struct
{
/*
* The xlog locations that have been written, flushed, and applied
* by standby-side. These may be invalid if the standby-side is unable
* to or chooses not to report these.
* The xlog locations that have been written, flushed, and applied by
* standby-side. These may be invalid if the standby-side is unable to or
* chooses not to report these.
*/
XLogRecPtr write;
XLogRecPtr flush;
@@ -70,11 +70,11 @@ typedef struct
{
/*
* The current xmin and epoch from the standby, for Hot Standby feedback.
* This may be invalid if the standby-side does not support feedback,
* or Hot Standby is not yet available.
* This may be invalid if the standby-side does not support feedback, or
* Hot Standby is not yet available.
*/
TransactionId xmin;
uint32 epoch;
TransactionId xmin;
uint32 epoch;
/* Sender's system clock at the time of transmission */
TimestampTz sendTime;

View File

@@ -17,7 +17,7 @@
#include "pgtime.h"
extern bool am_walreceiver;
extern int wal_receiver_status_interval;
extern int wal_receiver_status_interval;
extern bool hot_standby_feedback;
/*
@@ -52,17 +52,17 @@ typedef struct
pg_time_t startTime;
/*
* receiveStart is the first byte position that will be received.
* When startup process starts the walreceiver, it sets receiveStart
* to the point where it wants the streaming to begin.
* receiveStart is the first byte position that will be received. When
* startup process starts the walreceiver, it sets receiveStart to the
* point where it wants the streaming to begin.
*/
XLogRecPtr receiveStart;
/*
* receivedUpto-1 is the last byte position that has already been
* received. At the first startup of walreceiver, receivedUpto is
* set to receiveStart. After that, walreceiver updates this whenever
* it flushes the received WAL to disk.
* received. At the first startup of walreceiver, receivedUpto is set to
* receiveStart. After that, walreceiver updates this whenever it flushes
* the received WAL to disk.
*/
XLogRecPtr receivedUpto;

View File

@@ -25,7 +25,7 @@ typedef enum WalSndState
WALSNDSTATE_BACKUP,
WALSNDSTATE_CATCHUP,
WALSNDSTATE_STREAMING
} WalSndState;
} WalSndState;
/*
* Each walsender has a WalSnd struct in shared memory.
@@ -37,9 +37,9 @@ typedef struct WalSnd
XLogRecPtr sentPtr; /* WAL has been sent up to this point */
/*
* The xlog locations that have been written, flushed, and applied
* by standby-side. These may be invalid if the standby-side has not
* offered values yet.
* The xlog locations that have been written, flushed, and applied by
* standby-side. These may be invalid if the standby-side has not offered
* values yet.
*/
XLogRecPtr write;
XLogRecPtr flush;
@@ -49,17 +49,17 @@ typedef struct WalSnd
slock_t mutex;
/*
* Latch used by backends to wake up this walsender when it has work
* to do.
* Latch used by backends to wake up this walsender when it has work to
* do.
*/
Latch latch;
/*
* The priority order of the standby managed by this WALSender, as
* listed in synchronous_standby_names, or 0 if not-listed.
* Protected by SyncRepLock.
* The priority order of the standby managed by this WALSender, as listed
* in synchronous_standby_names, or 0 if not-listed. Protected by
* SyncRepLock.
*/
int sync_standby_priority;
int sync_standby_priority;
} WalSnd;
extern WalSnd *MyWalSnd;
@@ -70,11 +70,11 @@ typedef struct
/*
* Synchronous replication queue. Protected by SyncRepLock.
*/
SHM_QUEUE SyncRepQueue;
SHM_QUEUE SyncRepQueue;
/*
* Current location of the head of the queue. All waiters should have
* a waitLSN that follows this value. Protected by SyncRepLock.
* Current location of the head of the queue. All waiters should have a
* waitLSN that follows this value. Protected by SyncRepLock.
*/
XLogRecPtr lsn;