summaryrefslogtreecommitdiff
path: root/src/include/access
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/access')
-rw-r--r--src/include/access/amapi.h2
-rw-r--r--src/include/access/gistxlog.h10
-rw-r--r--src/include/access/hio.h2
-rw-r--r--src/include/access/relscan.h2
-rw-r--r--src/include/access/spgist_private.h2
-rw-r--r--src/include/access/spgxlog.h2
-rw-r--r--src/include/access/tableam.h28
-rw-r--r--src/include/access/tupdesc.h4
-rw-r--r--src/include/access/xlog.h2
-rw-r--r--src/include/access/xlog_internal.h2
10 files changed, 29 insertions, 27 deletions
diff --git a/src/include/access/amapi.h b/src/include/access/amapi.h
index 09a7404267..6e3db06eed 100644
--- a/src/include/access/amapi.h
+++ b/src/include/access/amapi.h
@@ -216,7 +216,7 @@ typedef struct IndexAmRoutine
amcostestimate_function amcostestimate;
amoptions_function amoptions;
amproperty_function amproperty; /* can be NULL */
- ambuildphasename_function ambuildphasename; /* can be NULL */
+ ambuildphasename_function ambuildphasename; /* can be NULL */
amvalidate_function amvalidate;
ambeginscan_function ambeginscan;
amrescan_function amrescan;
diff --git a/src/include/access/gistxlog.h b/src/include/access/gistxlog.h
index e66b034d7b..969a5376b5 100644
--- a/src/include/access/gistxlog.h
+++ b/src/include/access/gistxlog.h
@@ -18,9 +18,10 @@
#include "lib/stringinfo.h"
#define XLOG_GIST_PAGE_UPDATE 0x00
-#define XLOG_GIST_DELETE 0x10 /* delete leaf index tuples for a page */
-#define XLOG_GIST_PAGE_REUSE 0x20 /* old page is about to be reused from
- * FSM */
+#define XLOG_GIST_DELETE 0x10 /* delete leaf index tuples for a
+ * page */
+#define XLOG_GIST_PAGE_REUSE 0x20 /* old page is about to be reused
+ * from FSM */
#define XLOG_GIST_PAGE_SPLIT 0x30
/* #define XLOG_GIST_INSERT_COMPLETE 0x40 */ /* not used anymore */
/* #define XLOG_GIST_CREATE_INDEX 0x50 */ /* not used anymore */
@@ -83,7 +84,8 @@ typedef struct gistxlogPageSplit
typedef struct gistxlogPageDelete
{
TransactionId deleteXid; /* last Xid which could see page in scan */
- OffsetNumber downlinkOffset; /* Offset of downlink referencing this page */
+ OffsetNumber downlinkOffset; /* Offset of downlink referencing this
+ * page */
} gistxlogPageDelete;
#define SizeOfGistxlogPageDelete (offsetof(gistxlogPageDelete, downlinkOffset) + sizeof(OffsetNumber))
diff --git a/src/include/access/hio.h b/src/include/access/hio.h
index cec087cb1a..8daa12a5cb 100644
--- a/src/include/access/hio.h
+++ b/src/include/access/hio.h
@@ -31,7 +31,7 @@ typedef struct BulkInsertStateData
{
BufferAccessStrategy strategy; /* our BULKWRITE strategy object */
Buffer current_buf; /* current insertion target page */
-} BulkInsertStateData;
+} BulkInsertStateData;
extern void RelationPutHeapTuple(Relation relation, Buffer buffer,
diff --git a/src/include/access/relscan.h b/src/include/access/relscan.h
index 8bb480d322..2bde2c2bc4 100644
--- a/src/include/access/relscan.h
+++ b/src/include/access/relscan.h
@@ -78,7 +78,7 @@ typedef struct ParallelBlockTableScanDescData
BlockNumber phs_startblock; /* starting block number */
pg_atomic_uint64 phs_nallocated; /* number of blocks allocated to
* workers so far. */
-} ParallelBlockTableScanDescData;
+} ParallelBlockTableScanDescData;
typedef struct ParallelBlockTableScanDescData *ParallelBlockTableScanDesc;
/*
diff --git a/src/include/access/spgist_private.h b/src/include/access/spgist_private.h
index ce22bd36af..27daf9436d 100644
--- a/src/include/access/spgist_private.h
+++ b/src/include/access/spgist_private.h
@@ -146,7 +146,7 @@ typedef struct SpGistSearchItem
/* array with numberOfOrderBys entries */
double distances[FLEXIBLE_ARRAY_MEMBER];
-} SpGistSearchItem;
+} SpGistSearchItem;
#define SizeOfSpGistSearchItem(n_distances) \
(offsetof(SpGistSearchItem, distances) + sizeof(double) * (n_distances))
diff --git a/src/include/access/spgxlog.h b/src/include/access/spgxlog.h
index ee8fc6fd6b..073f740a13 100644
--- a/src/include/access/spgxlog.h
+++ b/src/include/access/spgxlog.h
@@ -18,7 +18,7 @@
#include "storage/off.h"
/* XLOG record types for SPGiST */
-/* #define XLOG_SPGIST_CREATE_INDEX 0x00 */ /* not used anymore */
+ /* #define XLOG_SPGIST_CREATE_INDEX 0x00 */ /* not used anymore */
#define XLOG_SPGIST_ADD_LEAF 0x10
#define XLOG_SPGIST_MOVE_LEAFS 0x20
#define XLOG_SPGIST_ADD_NODE 0x30
diff --git a/src/include/access/tableam.h b/src/include/access/tableam.h
index 53b58c51da..31c5eb9e92 100644
--- a/src/include/access/tableam.h
+++ b/src/include/access/tableam.h
@@ -45,21 +45,21 @@ struct ValidateIndexState;
typedef enum ScanOptions
{
/* one of SO_TYPE_* may be specified */
- SO_TYPE_SEQSCAN = 1 << 0,
- SO_TYPE_BITMAPSCAN = 1 << 1,
- SO_TYPE_SAMPLESCAN = 1 << 2,
- SO_TYPE_ANALYZE = 1 << 3,
+ SO_TYPE_SEQSCAN = 1 << 0,
+ SO_TYPE_BITMAPSCAN = 1 << 1,
+ SO_TYPE_SAMPLESCAN = 1 << 2,
+ SO_TYPE_ANALYZE = 1 << 3,
/* several of SO_ALLOW_* may be specified */
/* allow or disallow use of access strategy */
- SO_ALLOW_STRAT = 1 << 4,
+ SO_ALLOW_STRAT = 1 << 4,
/* report location to syncscan logic? */
- SO_ALLOW_SYNC = 1 << 5,
+ SO_ALLOW_SYNC = 1 << 5,
/* verify visibility page-at-a-time? */
- SO_ALLOW_PAGEMODE = 1 << 6,
+ SO_ALLOW_PAGEMODE = 1 << 6,
/* unregister snapshot at scan end? */
- SO_TEMP_SNAPSHOT = 1 << 7
+ SO_TEMP_SNAPSHOT = 1 << 7
} ScanOptions;
/*
@@ -575,12 +575,12 @@ typedef struct TableAmRoutine
/*
* This callback should return true if the relation requires a TOAST table
- * and false if it does not. It may wish to examine the relation's
- * tuple descriptor before making a decision, but if it uses some other
- * method of storing large values (or if it does not support them) it can
- * simply return false.
+ * and false if it does not. It may wish to examine the relation's tuple
+ * descriptor before making a decision, but if it uses some other method
+ * of storing large values (or if it does not support them) it can simply
+ * return false.
*/
- bool (*relation_needs_toast_table) (Relation rel);
+ bool (*relation_needs_toast_table) (Relation rel);
/* ------------------------------------------------------------------------
@@ -738,7 +738,7 @@ table_beginscan(Relation rel, Snapshot snapshot,
int nkeys, struct ScanKeyData *key)
{
uint32 flags = SO_TYPE_SEQSCAN |
- SO_ALLOW_STRAT | SO_ALLOW_SYNC | SO_ALLOW_PAGEMODE;
+ SO_ALLOW_STRAT | SO_ALLOW_SYNC | SO_ALLOW_PAGEMODE;
return rel->rd_tableam->scan_begin(rel, snapshot, nkeys, key, NULL, flags);
}
diff --git a/src/include/access/tupdesc.h b/src/include/access/tupdesc.h
index a592d22a0e..3610a9795e 100644
--- a/src/include/access/tupdesc.h
+++ b/src/include/access/tupdesc.h
@@ -38,7 +38,7 @@ typedef struct TupleConstr
{
AttrDefault *defval; /* array */
ConstrCheck *check; /* array */
- struct AttrMissing *missing; /* missing attributes values, NULL if none */
+ struct AttrMissing *missing; /* missing attributes values, NULL if none */
uint16 num_defval;
uint16 num_check;
bool has_not_null;
@@ -85,7 +85,7 @@ typedef struct TupleDescData
TupleConstr *constr; /* constraints, or NULL if none */
/* attrs[N] is the description of Attribute Number N+1 */
FormData_pg_attribute attrs[FLEXIBLE_ARRAY_MEMBER];
-} TupleDescData;
+} TupleDescData;
typedef struct TupleDescData *TupleDesc;
/* Accessor for the i'th attribute of tupdesc. */
diff --git a/src/include/access/xlog.h b/src/include/access/xlog.h
index 2af938bfdc..1ead0256ad 100644
--- a/src/include/access/xlog.h
+++ b/src/include/access/xlog.h
@@ -95,7 +95,7 @@ typedef enum
RECOVERY_TARGET_TIMELINE_CONTROLFILE,
RECOVERY_TARGET_TIMELINE_LATEST,
RECOVERY_TARGET_TIMELINE_NUMERIC
-} RecoveryTargetTimeLineGoal;
+} RecoveryTargetTimeLineGoal;
extern XLogRecPtr ProcLastRecPtr;
extern XLogRecPtr XactLastRecEnd;
diff --git a/src/include/access/xlog_internal.h b/src/include/access/xlog_internal.h
index 39a474c499..f7596071c1 100644
--- a/src/include/access/xlog_internal.h
+++ b/src/include/access/xlog_internal.h
@@ -268,7 +268,7 @@ typedef enum
RECOVERY_TARGET_ACTION_PAUSE,
RECOVERY_TARGET_ACTION_PROMOTE,
RECOVERY_TARGET_ACTION_SHUTDOWN
-} RecoveryTargetAction;
+} RecoveryTargetAction;
/*
* Method table for resource managers.