aboutsummaryrefslogtreecommitdiff
path: root/src/include/access
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2022-05-12 15:17:30 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2022-05-12 15:17:30 -0400
commit23e7b38bfe396f919fdb66057174d29e17086418 (patch)
tree335c3962ef8afe0f6193d0413dbc51642276b147 /src/include/access
parent93909599cdba64c8759d646983c0a4ef93de1e50 (diff)
downloadpostgresql-23e7b38bfe396f919fdb66057174d29e17086418.tar.gz
postgresql-23e7b38bfe396f919fdb66057174d29e17086418.zip
Pre-beta mechanical code beautification.
Run pgindent, pgperltidy, and reformat-dat-files. I manually fixed a couple of comments that pgindent uglified.
Diffstat (limited to 'src/include/access')
-rw-r--r--src/include/access/amapi.h2
-rw-r--r--src/include/access/heapam.h2
-rw-r--r--src/include/access/rmgr.h2
-rw-r--r--src/include/access/xact.h11
-rw-r--r--src/include/access/xlogstats.h12
-rw-r--r--src/include/access/xlogutils.h2
6 files changed, 16 insertions, 15 deletions
diff --git a/src/include/access/amapi.h b/src/include/access/amapi.h
index a382551a981..0b89f399f08 100644
--- a/src/include/access/amapi.h
+++ b/src/include/access/amapi.h
@@ -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 */
diff --git a/src/include/access/heapam.h b/src/include/access/heapam.h
index 5d7f7fd800e..abf62d9df79 100644
--- a/src/include/access/heapam.h
+++ b/src/include/access/heapam.h
@@ -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,
diff --git a/src/include/access/rmgr.h b/src/include/access/rmgr.h
index e465800e445..3b6a497e1b4 100644
--- a/src/include/access/rmgr.h
+++ b/src/include/access/rmgr.h
@@ -26,7 +26,7 @@ typedef enum RmgrIds
{
#include "access/rmgrlist.h"
RM_NEXT_ID
-} RmgrIds;
+} RmgrIds;
#undef PG_RMGR
diff --git a/src/include/access/xact.h b/src/include/access/xact.h
index 837fe7de0b9..4794941df31 100644
--- a/src/include/access/xact.h
+++ b/src/include/access/xact.h
@@ -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;
diff --git a/src/include/access/xlogstats.h b/src/include/access/xlogstats.h
index be59eece225..7eb4370f2d5 100644
--- a/src/include/access/xlogstats.h
+++ b/src/include/access/xlogstats.h
@@ -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,
diff --git a/src/include/access/xlogutils.h b/src/include/access/xlogutils.h
index 5fcbbc136f9..c9d0b75a01b 100644
--- a/src/include/access/xlogutils.h
+++ b/src/include/access/xlogutils.h
@@ -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,