mirror of
https://github.com/postgres/postgres.git
synced 2025-10-19 15:49:24 +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:
@@ -245,7 +245,7 @@ typedef struct IndexAmRoutine
|
||||
/* does AM use maintenance_work_mem? */
|
||||
bool amusemaintenanceworkmem;
|
||||
/* does AM block HOT update? */
|
||||
bool amhotblocking;
|
||||
bool amhotblocking;
|
||||
/* OR of parallel vacuum flags. See vacuum.h for flags. */
|
||||
uint8 amparallelvacuumoptions;
|
||||
/* type of data stored in index, or InvalidOid if variable */
|
||||
|
@@ -188,7 +188,7 @@ extern int heap_page_prune(Relation relation, Buffer buffer,
|
||||
struct GlobalVisState *vistest,
|
||||
TransactionId old_snap_xmin,
|
||||
TimestampTz old_snap_ts_ts,
|
||||
int *nnewlpdead,
|
||||
int *nnewlpdead,
|
||||
OffsetNumber *off_loc);
|
||||
extern void heap_page_prune_execute(Buffer buffer,
|
||||
OffsetNumber *redirected, int nredirected,
|
||||
|
@@ -26,7 +26,7 @@ typedef enum RmgrIds
|
||||
{
|
||||
#include "access/rmgrlist.h"
|
||||
RM_NEXT_ID
|
||||
} RmgrIds;
|
||||
} RmgrIds;
|
||||
|
||||
#undef PG_RMGR
|
||||
|
||||
|
@@ -231,9 +231,10 @@ typedef struct xl_xact_assignment
|
||||
typedef struct xl_xact_xinfo
|
||||
{
|
||||
/*
|
||||
* Even though we right now only require two bytes of space in xinfo we use
|
||||
* four so following records don't have to care about alignment. Commit
|
||||
* records can be large, so copying large portions isn't attractive.
|
||||
* Even though we right now only require two bytes of space in xinfo we
|
||||
* use four so following records don't have to care about alignment.
|
||||
* Commit records can be large, so copying large portions isn't
|
||||
* attractive.
|
||||
*/
|
||||
uint32 xinfo;
|
||||
} xl_xact_xinfo;
|
||||
@@ -274,7 +275,7 @@ typedef struct xl_xact_stats_item
|
||||
|
||||
typedef struct xl_xact_stats_items
|
||||
{
|
||||
int nitems;
|
||||
int nitems;
|
||||
xl_xact_stats_item items[FLEXIBLE_ARRAY_MEMBER];
|
||||
} xl_xact_stats_items;
|
||||
#define MinSizeOfXactStatsItems offsetof(xl_xact_stats_items, items)
|
||||
@@ -378,7 +379,7 @@ typedef struct xl_xact_parsed_commit
|
||||
char twophase_gid[GIDSIZE]; /* only for 2PC */
|
||||
int nabortrels; /* only for 2PC */
|
||||
RelFileNode *abortnodes; /* only for 2PC */
|
||||
int nabortstats; /* only for 2PC */
|
||||
int nabortstats; /* only for 2PC */
|
||||
xl_xact_stats_item *abortstats; /* only for 2PC */
|
||||
|
||||
XLogRecPtr origin_lsn;
|
||||
|
@@ -20,20 +20,20 @@
|
||||
|
||||
typedef struct XLogRecStats
|
||||
{
|
||||
uint64 count;
|
||||
uint64 rec_len;
|
||||
uint64 fpi_len;
|
||||
uint64 count;
|
||||
uint64 rec_len;
|
||||
uint64 fpi_len;
|
||||
} XLogRecStats;
|
||||
|
||||
typedef struct XLogStats
|
||||
{
|
||||
uint64 count;
|
||||
uint64 count;
|
||||
#ifdef FRONTEND
|
||||
XLogRecPtr startptr;
|
||||
XLogRecPtr endptr;
|
||||
#endif
|
||||
XLogRecStats rmgr_stats[RM_MAX_ID + 1];
|
||||
XLogRecStats record_stats[RM_MAX_ID + 1][MAX_XLINFO_TYPES];
|
||||
XLogRecStats rmgr_stats[RM_MAX_ID + 1];
|
||||
XLogRecStats record_stats[RM_MAX_ID + 1][MAX_XLINFO_TYPES];
|
||||
} XLogStats;
|
||||
|
||||
extern void XLogRecGetLen(XLogReaderState *record, uint32 *rec_len,
|
||||
|
@@ -78,7 +78,7 @@ typedef enum
|
||||
/* Private data of the read_local_xlog_page_no_wait callback. */
|
||||
typedef struct ReadLocalXLogPageNoWaitPrivate
|
||||
{
|
||||
bool end_of_wal; /* true, when end of WAL is reached */
|
||||
bool end_of_wal; /* true, when end of WAL is reached */
|
||||
} ReadLocalXLogPageNoWaitPrivate;
|
||||
|
||||
extern XLogRedoAction XLogReadBufferForRedo(XLogReaderState *record,
|
||||
|
Reference in New Issue
Block a user