mirror of
https://github.com/postgres/postgres.git
synced 2025-10-24 01:29:19 +03:00
pgindent run for release 9.3
This is the first run of the Perl-based pgindent script. Also update pgindent instructions.
This commit is contained in:
@@ -127,10 +127,10 @@ typedef XLogLongPageHeaderData *XLogLongPageHeader;
|
||||
* for deciding which segment to write given a pointer to a record end,
|
||||
* for example.
|
||||
*/
|
||||
#define XLByteToSeg(xlrp, logSegNo) \
|
||||
#define XLByteToSeg(xlrp, logSegNo) \
|
||||
logSegNo = (xlrp) / XLogSegSize
|
||||
|
||||
#define XLByteToPrevSeg(xlrp, logSegNo) \
|
||||
#define XLByteToPrevSeg(xlrp, logSegNo) \
|
||||
logSegNo = ((xlrp) - 1) / XLogSegSize
|
||||
|
||||
/*
|
||||
@@ -139,10 +139,10 @@ typedef XLogLongPageHeaderData *XLogLongPageHeader;
|
||||
* For XLByteInSeg, do the computation at face value. For XLByteInPrevSeg,
|
||||
* a boundary byte is taken to be in the previous segment.
|
||||
*/
|
||||
#define XLByteInSeg(xlrp, logSegNo) \
|
||||
#define XLByteInSeg(xlrp, logSegNo) \
|
||||
(((xlrp) / XLogSegSize) == (logSegNo))
|
||||
|
||||
#define XLByteInPrevSeg(xlrp, logSegNo) \
|
||||
#define XLByteInPrevSeg(xlrp, logSegNo) \
|
||||
((((xlrp) - 1) / XLogSegSize) == (logSegNo))
|
||||
|
||||
/* Check if an XLogRecPtr value is in a plausible range */
|
||||
@@ -170,8 +170,8 @@ typedef XLogLongPageHeaderData *XLogLongPageHeader;
|
||||
do { \
|
||||
uint32 log; \
|
||||
uint32 seg; \
|
||||
sscanf(fname, "%08X%08X%08X", tli, &log, &seg); \
|
||||
*logSegNo = (uint64) log * XLogSegmentsPerXLogId + seg; \
|
||||
sscanf(fname, "%08X%08X%08X", tli, &log, &seg); \
|
||||
*logSegNo = (uint64) log * XLogSegmentsPerXLogId + seg; \
|
||||
} while (0)
|
||||
|
||||
#define XLogFilePath(path, tli, logSegNo) \
|
||||
@@ -260,7 +260,7 @@ extern XLogRecPtr RequestXLogSwitch(void);
|
||||
extern void GetOldestRestartPoint(XLogRecPtr *oldrecptr, TimeLineID *oldtli);
|
||||
|
||||
/*
|
||||
* Exported for the functions in timeline.c and xlogarchive.c. Only valid
|
||||
* Exported for the functions in timeline.c and xlogarchive.c. Only valid
|
||||
* in the startup process.
|
||||
*/
|
||||
extern bool ArchiveRecoveryRequested;
|
||||
@@ -276,7 +276,7 @@ extern bool RestoreArchivedFile(char *path, const char *xlogfname,
|
||||
bool cleanupEnabled);
|
||||
extern void ExecuteRecoveryCommand(char *command, char *commandName,
|
||||
bool failOnerror);
|
||||
extern void KeepFileRestoredFromArchive(char *path, char *xlogfname);
|
||||
extern void KeepFileRestoredFromArchive(char *path, char *xlogfname);
|
||||
extern void XLogArchiveNotify(const char *xlog);
|
||||
extern void XLogArchiveNotifySeg(XLogSegNo segno);
|
||||
extern void XLogArchiveForceDone(const char *xlog);
|
||||
|
||||
Reference in New Issue
Block a user