summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/backend/access/gist/gistbuild.c2
-rw-r--r--src/backend/access/heap/vacuumlazy.c2
-rw-r--r--src/backend/access/nbtree/nbtree.c2
-rw-r--r--src/backend/access/nbtree/nbtsplitloc.c2
-rw-r--r--src/backend/access/spgist/spgscan.c2
-rw-r--r--src/backend/access/transam/slru.c2
-rw-r--r--src/backend/access/transam/xact.c4
-rw-r--r--src/backend/access/transam/xlogprefetcher.c2
-rw-r--r--src/backend/access/transam/xlogrecovery.c2
-rw-r--r--src/backend/catalog/pg_shdepend.c2
-rw-r--r--src/backend/commands/async.c2
-rw-r--r--src/backend/commands/copyto.c2
-rw-r--r--src/backend/commands/dbcommands.c2
-rw-r--r--src/backend/commands/user.c2
-rw-r--r--src/backend/commands/vacuumparallel.c2
-rw-r--r--src/backend/executor/execIndexing.c2
-rw-r--r--src/backend/executor/functions.c2
-rw-r--r--src/backend/executor/nodeMergejoin.c2
-rw-r--r--src/backend/executor/nodeTidrangescan.c2
-rw-r--r--src/backend/libpq/auth-scram.c2
-rw-r--r--src/backend/nodes/tidbitmap.c4
-rw-r--r--src/backend/optimizer/path/allpaths.c2
-rw-r--r--src/backend/optimizer/path/indxpath.c2
-rw-r--r--src/backend/optimizer/plan/setrefs.c2
-rw-r--r--src/backend/optimizer/util/pathnode.c2
-rw-r--r--src/backend/optimizer/util/predtest.c2
-rw-r--r--src/backend/parser/parse_collate.c2
-rw-r--r--src/backend/parser/parse_cte.c2
-rw-r--r--src/backend/parser/parse_func.c2
-rw-r--r--src/backend/partitioning/partprune.c4
-rw-r--r--src/backend/port/sysv_shmem.c2
-rw-r--r--src/backend/postmaster/autovacuum.c2
-rw-r--r--src/backend/postmaster/postmaster.c4
-rw-r--r--src/backend/regex/regc_pg_locale.c2
-rw-r--r--src/backend/replication/logical/worker.c2
-rw-r--r--src/backend/replication/pgoutput/pgoutput.c2
-rw-r--r--src/backend/replication/walreceiver.c2
-rw-r--r--src/backend/storage/file/fd.c2
-rw-r--r--src/backend/storage/ipc/procarray.c4
-rw-r--r--src/backend/utils/adt/arrayfuncs.c2
-rw-r--r--src/backend/utils/adt/formatting.c2
-rw-r--r--src/backend/utils/adt/jsonb_gin.c2
-rw-r--r--src/backend/utils/adt/jsonfuncs.c2
-rw-r--r--src/backend/utils/adt/like_support.c4
-rw-r--r--src/backend/utils/adt/rangetypes_gist.c2
-rw-r--r--src/backend/utils/adt/tsquery.c4
-rw-r--r--src/backend/utils/cache/evtcache.c2
-rw-r--r--src/backend/utils/sort/tuplesort.c2
-rw-r--r--src/backend/utils/sort/tuplestore.c2
-rw-r--r--src/bin/pg_basebackup/bbstreamer.h2
-rw-r--r--src/bin/pg_basebackup/pg_basebackup.c4
-rw-r--r--src/bin/pg_basebackup/walmethods.h2
-rw-r--r--src/bin/pg_checksums/pg_checksums.c2
-rw-r--r--src/bin/pg_ctl/pg_ctl.c6
-rw-r--r--src/bin/pg_dump/parallel.c2
-rw-r--r--src/bin/pg_dump/parallel.h2
-rw-r--r--src/bin/pg_dump/pg_backup.h8
-rw-r--r--src/bin/pg_dump/pg_backup_archiver.h10
-rw-r--r--src/bin/pg_dump/pg_dump.c2
-rw-r--r--src/bin/pg_dump/pg_dump.h2
-rw-r--r--src/bin/pg_rewind/filemap.h4
-rw-r--r--src/bin/pg_upgrade/pg_upgrade.h4
-rw-r--r--src/bin/pg_verifybackup/parse_manifest.c6
-rw-r--r--src/bin/pgbench/pgbench.c10
-rw-r--r--src/bin/pgbench/pgbench.h6
-rw-r--r--src/bin/psql/command.c2
-rw-r--r--src/bin/psql/command.h2
-rw-r--r--src/bin/psql/psqlscanslash.h2
-rw-r--r--src/bin/psql/settings.h12
-rw-r--r--src/bin/psql/startup.c2
-rw-r--r--src/bin/scripts/reindexdb.c2
-rw-r--r--src/bin/scripts/vacuumdb.c2
-rw-r--r--src/common/cryptohash.c2
-rw-r--r--src/common/cryptohash_openssl.c2
-rw-r--r--src/common/hmac.c2
-rw-r--r--src/common/hmac_openssl.c2
-rw-r--r--src/common/jsonapi.c2
-rw-r--r--src/include/access/amapi.h2
-rw-r--r--src/include/access/genam.h2
-rw-r--r--src/include/access/gin_private.h2
-rw-r--r--src/include/access/gist_private.h2
-rw-r--r--src/include/access/heapam.h2
-rw-r--r--src/include/access/multixact.h2
-rw-r--r--src/include/access/reloptions.h2
-rw-r--r--src/include/access/slru.h2
-rw-r--r--src/include/access/spgist.h2
-rw-r--r--src/include/access/tableam.h8
-rw-r--r--src/include/access/toast_compression.h2
-rw-r--r--src/include/access/xact.h8
-rw-r--r--src/include/access/xlog.h10
-rw-r--r--src/include/access/xlog_internal.h2
-rw-r--r--src/include/access/xlogprefetcher.h2
-rw-r--r--src/include/access/xlogreader.h2
-rw-r--r--src/include/access/xlogrecovery.h6
-rw-r--r--src/include/access/xlogutils.h4
-rw-r--r--src/include/backup/backup_manifest.h2
-rw-r--r--src/include/catalog/dependency.h6
-rw-r--r--src/include/catalog/index.h2
-rw-r--r--src/include/catalog/namespace.h6
-rw-r--r--src/include/catalog/objectaccess.h2
-rw-r--r--src/include/catalog/pg_cast.h8
-rw-r--r--src/include/catalog/pg_constraint.h2
-rw-r--r--src/include/catalog/pg_control.h2
-rw-r--r--src/include/catalog/pg_init_privs.h4
-rw-r--r--src/include/commands/copyfrom_internal.h6
-rw-r--r--src/include/commands/explain.h2
-rw-r--r--src/include/common/checksum_helper.h2
-rw-r--r--src/include/common/compression.h2
-rw-r--r--src/include/common/cryptohash.h2
-rw-r--r--src/include/common/file_utils.h4
-rw-r--r--src/include/common/jsonapi.h4
-rw-r--r--src/include/common/relpath.h2
-rw-r--r--src/include/common/saslprep.h2
-rw-r--r--src/include/executor/hashjoin.h2
-rw-r--r--src/include/fe_utils/conditional.h2
-rw-r--r--src/include/fe_utils/print.h8
-rw-r--r--src/include/fe_utils/psqlscan.h6
-rw-r--r--src/include/fmgr.h2
-rw-r--r--src/include/funcapi.h2
-rw-r--r--src/include/libpq/crypt.h2
-rw-r--r--src/include/libpq/hba.h8
-rw-r--r--src/include/libpq/libpq-be.h2
-rw-r--r--src/include/miscadmin.h2
-rw-r--r--src/include/nodes/bitmapset.h4
-rw-r--r--src/include/nodes/execnodes.h12
-rw-r--r--src/include/nodes/lockoptions.h6
-rw-r--r--src/include/nodes/nodes.h14
-rw-r--r--src/include/nodes/parsenodes.h66
-rw-r--r--src/include/nodes/pathnodes.h10
-rw-r--r--src/include/nodes/plannodes.h8
-rw-r--r--src/include/nodes/primnodes.h24
-rw-r--r--src/include/nodes/queryjumble.h2
-rw-r--r--src/include/nodes/replnodes.h2
-rw-r--r--src/include/optimizer/cost.h2
-rw-r--r--src/include/optimizer/optimizer.h2
-rw-r--r--src/include/optimizer/paths.h2
-rw-r--r--src/include/parser/parse_coerce.h2
-rw-r--r--src/include/parser/parse_func.h2
-rw-r--r--src/include/parser/parser.h4
-rw-r--r--src/include/pgstat.h4
-rw-r--r--src/include/pgtar.h6
-rw-r--r--src/include/postmaster/autovacuum.h2
-rw-r--r--src/include/postmaster/bgworker.h4
-rw-r--r--src/include/replication/logicalproto.h2
-rw-r--r--src/include/replication/output_plugin.h2
-rw-r--r--src/include/replication/reorderbuffer.h4
-rw-r--r--src/include/replication/slot.h2
-rw-r--r--src/include/replication/snapbuild.h2
-rw-r--r--src/include/replication/walreceiver.h4
-rw-r--r--src/include/replication/walsender.h2
-rw-r--r--src/include/replication/walsender_private.h2
-rw-r--r--src/include/replication/worker_internal.h6
-rw-r--r--src/include/rewrite/rewriteManip.h2
-rw-r--r--src/include/storage/bufmgr.h4
-rw-r--r--src/include/storage/dsm_impl.h2
-rw-r--r--src/include/storage/lmgr.h2
-rw-r--r--src/include/storage/lock.h6
-rw-r--r--src/include/storage/lwlock.h4
-rw-r--r--src/include/storage/pg_shmem.h4
-rw-r--r--src/include/storage/pmsignal.h2
-rw-r--r--src/include/storage/predicate_internals.h4
-rw-r--r--src/include/storage/procsignal.h2
-rw-r--r--src/include/storage/shm_mq.h2
-rw-r--r--src/include/storage/sync.h4
-rw-r--r--src/include/tcop/deparse_utility.h2
-rw-r--r--src/include/tcop/dest.h2
-rw-r--r--src/include/tcop/tcopprot.h2
-rw-r--r--src/include/tcop/utility.h2
-rw-r--r--src/include/tsearch/dicts/spell.h2
-rw-r--r--src/include/tsearch/ts_utils.h2
-rw-r--r--src/include/utils/acl.h4
-rw-r--r--src/include/utils/backend_progress.h2
-rw-r--r--src/include/utils/backend_status.h2
-rw-r--r--src/include/utils/bytea.h2
-rw-r--r--src/include/utils/elog.h2
-rw-r--r--src/include/utils/guc.h6
-rw-r--r--src/include/utils/guc_tables.h6
-rw-r--r--src/include/utils/hsearch.h2
-rw-r--r--src/include/utils/jsonb.h4
-rw-r--r--src/include/utils/lsyscache.h2
-rw-r--r--src/include/utils/memutils_internal.h2
-rw-r--r--src/include/utils/plancache.h2
-rw-r--r--src/include/utils/portal.h4
-rw-r--r--src/include/utils/queryenvironment.h2
-rw-r--r--src/include/utils/rel.h4
-rw-r--r--src/include/utils/relcache.h2
-rw-r--r--src/include/utils/resowner.h2
-rw-r--r--src/include/utils/rls.h2
-rw-r--r--src/include/utils/snapshot.h2
-rw-r--r--src/include/utils/syscache.h2
-rw-r--r--src/include/utils/timeout.h2
-rw-r--r--src/include/utils/tuplesort.h4
-rw-r--r--src/include/utils/wait_event.h2
-rw-r--r--src/include/utils/xml.h6
-rw-r--r--src/interfaces/libpq/fe-auth-scram.c2
-rw-r--r--src/pl/plpgsql/src/plpgsql.h24
-rw-r--r--src/port/path.c2
-rw-r--r--src/test/isolation/isolationtester.h2
-rw-r--r--src/test/modules/dummy_index_am/dummy_index_am.c2
-rw-r--r--src/test/modules/libpq_pipeline/libpq_pipeline.c2
-rw-r--r--src/test/regress/pg_regress.c2
-rw-r--r--src/timezone/localtime.c2
202 files changed, 369 insertions, 369 deletions
diff --git a/src/backend/access/gist/gistbuild.c b/src/backend/access/gist/gistbuild.c
index 5e0c1447f92..a45e2fe3755 100644
--- a/src/backend/access/gist/gistbuild.c
+++ b/src/backend/access/gist/gistbuild.c
@@ -75,7 +75,7 @@ typedef enum
GIST_BUFFERING_STATS, /* gathering statistics of index tuple size
* before switching to the buffering build
* mode */
- GIST_BUFFERING_ACTIVE /* in buffering build mode */
+ GIST_BUFFERING_ACTIVE, /* in buffering build mode */
} GistBuildMode;
/* Working state for gistbuild and its callback */
diff --git a/src/backend/access/heap/vacuumlazy.c b/src/backend/access/heap/vacuumlazy.c
index 42e49bc159b..6985d299b26 100644
--- a/src/backend/access/heap/vacuumlazy.c
+++ b/src/backend/access/heap/vacuumlazy.c
@@ -135,7 +135,7 @@ typedef enum
VACUUM_ERRCB_PHASE_VACUUM_INDEX,
VACUUM_ERRCB_PHASE_VACUUM_HEAP,
VACUUM_ERRCB_PHASE_INDEX_CLEANUP,
- VACUUM_ERRCB_PHASE_TRUNCATE
+ VACUUM_ERRCB_PHASE_TRUNCATE,
} VacErrPhase;
typedef struct LVRelState
diff --git a/src/backend/access/nbtree/nbtree.c b/src/backend/access/nbtree/nbtree.c
index 92950b37767..a88b36a589a 100644
--- a/src/backend/access/nbtree/nbtree.c
+++ b/src/backend/access/nbtree/nbtree.c
@@ -56,7 +56,7 @@ typedef enum
BTPARALLEL_NOT_INITIALIZED,
BTPARALLEL_ADVANCING,
BTPARALLEL_IDLE,
- BTPARALLEL_DONE
+ BTPARALLEL_DONE,
} BTPS_State;
/*
diff --git a/src/backend/access/nbtree/nbtsplitloc.c b/src/backend/access/nbtree/nbtsplitloc.c
index 43b67893d94..85834c3dd7d 100644
--- a/src/backend/access/nbtree/nbtsplitloc.c
+++ b/src/backend/access/nbtree/nbtsplitloc.c
@@ -22,7 +22,7 @@ typedef enum
/* strategy for searching through materialized list of split points */
SPLIT_DEFAULT, /* give some weight to truncation */
SPLIT_MANY_DUPLICATES, /* find minimally distinguishing point */
- SPLIT_SINGLE_VALUE /* leave left page almost full */
+ SPLIT_SINGLE_VALUE, /* leave left page almost full */
} FindSplitStrat;
typedef struct
diff --git a/src/backend/access/spgist/spgscan.c b/src/backend/access/spgist/spgscan.c
index 8c00b724db2..f350f0b4f19 100644
--- a/src/backend/access/spgist/spgscan.c
+++ b/src/backend/access/spgist/spgscan.c
@@ -756,7 +756,7 @@ enum SpGistSpecialOffsetNumbers
{
SpGistBreakOffsetNumber = InvalidOffsetNumber,
SpGistRedirectOffsetNumber = MaxOffsetNumber + 1,
- SpGistErrorOffsetNumber = MaxOffsetNumber + 2
+ SpGistErrorOffsetNumber = MaxOffsetNumber + 2,
};
static OffsetNumber
diff --git a/src/backend/access/transam/slru.c b/src/backend/access/transam/slru.c
index 71ac70fb40c..9ed24e1185c 100644
--- a/src/backend/access/transam/slru.c
+++ b/src/backend/access/transam/slru.c
@@ -128,7 +128,7 @@ typedef enum
SLRU_READ_FAILED,
SLRU_WRITE_FAILED,
SLRU_FSYNC_FAILED,
- SLRU_CLOSE_FAILED
+ SLRU_CLOSE_FAILED,
} SlruErrorCause;
static SlruErrorCause slru_errcause;
diff --git a/src/backend/access/transam/xact.c b/src/backend/access/transam/xact.c
index 37c5e34ccea..5d89f828187 100644
--- a/src/backend/access/transam/xact.c
+++ b/src/backend/access/transam/xact.c
@@ -145,7 +145,7 @@ typedef enum TransState
TRANS_INPROGRESS, /* inside a valid transaction */
TRANS_COMMIT, /* commit in progress */
TRANS_ABORT, /* abort in progress */
- TRANS_PREPARE /* prepare in progress */
+ TRANS_PREPARE, /* prepare in progress */
} TransState;
/*
@@ -180,7 +180,7 @@ typedef enum TBlockState
TBLOCK_SUBABORT_END, /* failed subxact, ROLLBACK received */
TBLOCK_SUBABORT_PENDING, /* live subxact, ROLLBACK received */
TBLOCK_SUBRESTART, /* live subxact, ROLLBACK TO received */
- TBLOCK_SUBABORT_RESTART /* failed subxact, ROLLBACK TO received */
+ TBLOCK_SUBABORT_RESTART, /* failed subxact, ROLLBACK TO received */
} TBlockState;
/*
diff --git a/src/backend/access/transam/xlogprefetcher.c b/src/backend/access/transam/xlogprefetcher.c
index 539928cb854..a98336f26ac 100644
--- a/src/backend/access/transam/xlogprefetcher.c
+++ b/src/backend/access/transam/xlogprefetcher.c
@@ -88,7 +88,7 @@ typedef enum
{
LRQ_NEXT_NO_IO,
LRQ_NEXT_IO,
- LRQ_NEXT_AGAIN
+ LRQ_NEXT_AGAIN,
} LsnReadQueueNextStatus;
/*
diff --git a/src/backend/access/transam/xlogrecovery.c b/src/backend/access/transam/xlogrecovery.c
index 315e4b27cb8..49bb3fe4520 100644
--- a/src/backend/access/transam/xlogrecovery.c
+++ b/src/backend/access/transam/xlogrecovery.c
@@ -211,7 +211,7 @@ typedef enum
XLOG_FROM_ANY = 0, /* request to read WAL from any source */
XLOG_FROM_ARCHIVE, /* restored using restore_command */
XLOG_FROM_PG_WAL, /* existing file in pg_wal */
- XLOG_FROM_STREAM /* streamed from primary */
+ XLOG_FROM_STREAM, /* streamed from primary */
} XLogSource;
/* human-readable names for XLogSources, for debugging output */
diff --git a/src/backend/catalog/pg_shdepend.c b/src/backend/catalog/pg_shdepend.c
index 91c7f3426f9..8f09c632f96 100644
--- a/src/backend/catalog/pg_shdepend.c
+++ b/src/backend/catalog/pg_shdepend.c
@@ -73,7 +73,7 @@ typedef enum
{
LOCAL_OBJECT,
SHARED_OBJECT,
- REMOTE_OBJECT
+ REMOTE_OBJECT,
} SharedDependencyObjectType;
typedef struct
diff --git a/src/backend/commands/async.c b/src/backend/commands/async.c
index d148d10850a..38ddae08b86 100644
--- a/src/backend/commands/async.c
+++ b/src/backend/commands/async.c
@@ -351,7 +351,7 @@ typedef enum
{
LISTEN_LISTEN,
LISTEN_UNLISTEN,
- LISTEN_UNLISTEN_ALL
+ LISTEN_UNLISTEN_ALL,
} ListenActionKind;
typedef struct
diff --git a/src/backend/commands/copyto.c b/src/backend/commands/copyto.c
index 0378f0ade09..c66a047c4a7 100644
--- a/src/backend/commands/copyto.c
+++ b/src/backend/commands/copyto.c
@@ -51,7 +51,7 @@ typedef enum CopyDest
{
COPY_FILE, /* to file (or a piped program) */
COPY_FRONTEND, /* to frontend */
- COPY_CALLBACK /* to callback function */
+ COPY_CALLBACK, /* to callback function */
} CopyDest;
/*
diff --git a/src/backend/commands/dbcommands.c b/src/backend/commands/dbcommands.c
index c52ecc61a6b..ae38f830243 100644
--- a/src/backend/commands/dbcommands.c
+++ b/src/backend/commands/dbcommands.c
@@ -83,7 +83,7 @@
typedef enum CreateDBStrategy
{
CREATEDB_WAL_LOG,
- CREATEDB_FILE_COPY
+ CREATEDB_FILE_COPY,
} CreateDBStrategy;
typedef struct
diff --git a/src/backend/commands/user.c b/src/backend/commands/user.c
index ce77a055e58..f47aa38231b 100644
--- a/src/backend/commands/user.c
+++ b/src/backend/commands/user.c
@@ -64,7 +64,7 @@ typedef enum
RRG_REMOVE_ADMIN_OPTION,
RRG_REMOVE_INHERIT_OPTION,
RRG_REMOVE_SET_OPTION,
- RRG_DELETE_GRANT
+ RRG_DELETE_GRANT,
} RevokeRoleGrantAction;
/* Potentially set by pg_upgrade_support functions */
diff --git a/src/backend/commands/vacuumparallel.c b/src/backend/commands/vacuumparallel.c
index 351ab4957af..176c555d639 100644
--- a/src/backend/commands/vacuumparallel.c
+++ b/src/backend/commands/vacuumparallel.c
@@ -118,7 +118,7 @@ typedef enum PVIndVacStatus
PARALLEL_INDVAC_STATUS_INITIAL = 0,
PARALLEL_INDVAC_STATUS_NEED_BULKDELETE,
PARALLEL_INDVAC_STATUS_NEED_CLEANUP,
- PARALLEL_INDVAC_STATUS_COMPLETED
+ PARALLEL_INDVAC_STATUS_COMPLETED,
} PVIndVacStatus;
/*
diff --git a/src/backend/executor/execIndexing.c b/src/backend/executor/execIndexing.c
index 3c6730632de..384b39839a0 100644
--- a/src/backend/executor/execIndexing.c
+++ b/src/backend/executor/execIndexing.c
@@ -121,7 +121,7 @@ typedef enum
{
CEOUC_WAIT,
CEOUC_NOWAIT,
- CEOUC_LIVELOCK_PREVENTING_WAIT
+ CEOUC_LIVELOCK_PREVENTING_WAIT,
} CEOUC_WAIT_MODE;
static bool check_exclusion_or_unique_constraint(Relation heap, Relation index,
diff --git a/src/backend/executor/functions.c b/src/backend/executor/functions.c
index f55424eb5ad..bace25234c3 100644
--- a/src/backend/executor/functions.c
+++ b/src/backend/executor/functions.c
@@ -59,7 +59,7 @@ typedef struct
*/
typedef enum
{
- F_EXEC_START, F_EXEC_RUN, F_EXEC_DONE
+ F_EXEC_START, F_EXEC_RUN, F_EXEC_DONE,
} ExecStatus;
typedef struct execution_state
diff --git a/src/backend/executor/nodeMergejoin.c b/src/backend/executor/nodeMergejoin.c
index ed3ebe92e52..3cdab77dfc1 100644
--- a/src/backend/executor/nodeMergejoin.c
+++ b/src/backend/executor/nodeMergejoin.c
@@ -145,7 +145,7 @@ typedef enum
{
MJEVAL_MATCHABLE, /* normal, potentially matchable tuple */
MJEVAL_NONMATCHABLE, /* tuple cannot join because it has a null */
- MJEVAL_ENDOFJOIN /* end of input (physical or effective) */
+ MJEVAL_ENDOFJOIN, /* end of input (physical or effective) */
} MJEvalResult;
diff --git a/src/backend/executor/nodeTidrangescan.c b/src/backend/executor/nodeTidrangescan.c
index da622d3f5f3..6f97c35daa1 100644
--- a/src/backend/executor/nodeTidrangescan.c
+++ b/src/backend/executor/nodeTidrangescan.c
@@ -39,7 +39,7 @@
typedef enum
{
TIDEXPR_UPPER_BOUND,
- TIDEXPR_LOWER_BOUND
+ TIDEXPR_LOWER_BOUND,
} TidExprType;
/* Upper or lower range bound for scan */
diff --git a/src/backend/libpq/auth-scram.c b/src/backend/libpq/auth-scram.c
index 118d15b1a11..df416af6b9d 100644
--- a/src/backend/libpq/auth-scram.c
+++ b/src/backend/libpq/auth-scram.c
@@ -129,7 +129,7 @@ typedef enum
{
SCRAM_AUTH_INIT,
SCRAM_AUTH_SALT_SENT,
- SCRAM_AUTH_FINISHED
+ SCRAM_AUTH_FINISHED,
} scram_state_enum;
typedef struct
diff --git a/src/backend/nodes/tidbitmap.c b/src/backend/nodes/tidbitmap.c
index 29a18584410..bb6c8305621 100644
--- a/src/backend/nodes/tidbitmap.c
+++ b/src/backend/nodes/tidbitmap.c
@@ -129,7 +129,7 @@ typedef enum
{
TBM_EMPTY, /* no hashtable, nentries == 0 */
TBM_ONE_PAGE, /* entry1 contains the single entry */
- TBM_HASH /* pagetable is valid, entry1 is not */
+ TBM_HASH, /* pagetable is valid, entry1 is not */
} TBMStatus;
/*
@@ -139,7 +139,7 @@ typedef enum
{
TBM_NOT_ITERATING, /* not yet converted to page and chunk array */
TBM_ITERATING_PRIVATE, /* converted to local page and chunk array */
- TBM_ITERATING_SHARED /* converted to shared page and chunk array */
+ TBM_ITERATING_SHARED, /* converted to shared page and chunk array */
} TBMIteratingState;
/*
diff --git a/src/backend/optimizer/path/allpaths.c b/src/backend/optimizer/path/allpaths.c
index 3cda88e3333..67921a08262 100644
--- a/src/backend/optimizer/path/allpaths.c
+++ b/src/backend/optimizer/path/allpaths.c
@@ -74,7 +74,7 @@ typedef enum pushdown_safe_type
{
PUSHDOWN_UNSAFE, /* unsafe to push qual into subquery */
PUSHDOWN_SAFE, /* safe to push qual into subquery */
- PUSHDOWN_WINDOWCLAUSE_RUNCOND /* unsafe, but may work as WindowClause
+ PUSHDOWN_WINDOWCLAUSE_RUNCOND, /* unsafe, but may work as WindowClause
* run condition */
} pushdown_safe_type;
diff --git a/src/backend/optimizer/path/indxpath.c b/src/backend/optimizer/path/indxpath.c
index 01e773b91d8..03a5fbdc6dc 100644
--- a/src/backend/optimizer/path/indxpath.c
+++ b/src/backend/optimizer/path/indxpath.c
@@ -45,7 +45,7 @@ typedef enum
{
ST_INDEXSCAN, /* must support amgettuple */
ST_BITMAPSCAN, /* must support amgetbitmap */
- ST_ANYSCAN /* either is okay */
+ ST_ANYSCAN, /* either is okay */
} ScanTypeControl;
/* Data structure for collecting qual clauses that match an index */
diff --git a/src/backend/optimizer/plan/setrefs.c b/src/backend/optimizer/plan/setrefs.c
index 79622008854..fc3709510d2 100644
--- a/src/backend/optimizer/plan/setrefs.c
+++ b/src/backend/optimizer/plan/setrefs.c
@@ -35,7 +35,7 @@ typedef enum
{
NRM_EQUAL, /* expect exact match of nullingrels */
NRM_SUBSET, /* actual Var may have a subset of input */
- NRM_SUPERSET /* actual Var may have a superset of input */
+ NRM_SUPERSET, /* actual Var may have a superset of input */
} NullingRelsMatch;
typedef struct
diff --git a/src/backend/optimizer/util/pathnode.c b/src/backend/optimizer/util/pathnode.c
index bc8757f9d72..0b1d17b9d33 100644
--- a/src/backend/optimizer/util/pathnode.c
+++ b/src/backend/optimizer/util/pathnode.c
@@ -40,7 +40,7 @@ typedef enum
COSTS_EQUAL, /* path costs are fuzzily equal */
COSTS_BETTER1, /* first path is cheaper than second */
COSTS_BETTER2, /* second path is cheaper than first */
- COSTS_DIFFERENT /* neither path dominates the other on cost */
+ COSTS_DIFFERENT, /* neither path dominates the other on cost */
} PathCostComparison;
/*
diff --git a/src/backend/optimizer/util/predtest.c b/src/backend/optimizer/util/predtest.c
index 237c8838743..fe83e45311d 100644
--- a/src/backend/optimizer/util/predtest.c
+++ b/src/backend/optimizer/util/predtest.c
@@ -51,7 +51,7 @@ typedef enum
{
CLASS_ATOM, /* expression that's not AND or OR */
CLASS_AND, /* expression with AND semantics */
- CLASS_OR /* expression with OR semantics */
+ CLASS_OR, /* expression with OR semantics */
} PredClass;
typedef struct PredIterInfoData *PredIterInfo;
diff --git a/src/backend/parser/parse_collate.c b/src/backend/parser/parse_collate.c
index 9f6afc351ce..c480ce36825 100644
--- a/src/backend/parser/parse_collate.c
+++ b/src/backend/parser/parse_collate.c
@@ -58,7 +58,7 @@ typedef enum
COLLATE_NONE, /* expression is of a noncollatable datatype */
COLLATE_IMPLICIT, /* collation was derived implicitly */
COLLATE_CONFLICT, /* we had a conflict of implicit collations */
- COLLATE_EXPLICIT /* collation was derived explicitly */
+ COLLATE_EXPLICIT, /* collation was derived explicitly */
} CollateStrength;
typedef struct
diff --git a/src/backend/parser/parse_cte.c b/src/backend/parser/parse_cte.c
index c5b1a49725c..6992a788c0b 100644
--- a/src/backend/parser/parse_cte.c
+++ b/src/backend/parser/parse_cte.c
@@ -35,7 +35,7 @@ typedef enum
RECURSION_SUBLINK, /* inside a sublink */
RECURSION_OUTERJOIN, /* inside nullable side of an outer join */
RECURSION_INTERSECT, /* underneath INTERSECT (ALL) */
- RECURSION_EXCEPT /* underneath EXCEPT (ALL) */
+ RECURSION_EXCEPT, /* underneath EXCEPT (ALL) */
} RecursionContext;
/* Associated error messages --- each must have one %s for CTE name */
diff --git a/src/backend/parser/parse_func.c b/src/backend/parser/parse_func.c
index b3f0b6a137a..6c29471bb33 100644
--- a/src/backend/parser/parse_func.c
+++ b/src/backend/parser/parse_func.c
@@ -39,7 +39,7 @@
typedef enum
{
FUNCLOOKUP_NOSUCHFUNC,
- FUNCLOOKUP_AMBIGUOUS
+ FUNCLOOKUP_AMBIGUOUS,
} FuncLookupError;
static void unify_hypothetical_args(ParseState *pstate,
diff --git a/src/backend/partitioning/partprune.c b/src/backend/partitioning/partprune.c
index ae76f7267e0..3f31ecc9567 100644
--- a/src/backend/partitioning/partprune.c
+++ b/src/backend/partitioning/partprune.c
@@ -82,7 +82,7 @@ typedef enum PartClauseMatchStatus
PARTCLAUSE_MATCH_NULLNESS,
PARTCLAUSE_MATCH_STEPS,
PARTCLAUSE_MATCH_CONTRADICT,
- PARTCLAUSE_UNSUPPORTED
+ PARTCLAUSE_UNSUPPORTED,
} PartClauseMatchStatus;
/*
@@ -93,7 +93,7 @@ typedef enum PartClauseTarget
{
PARTTARGET_PLANNER, /* want to prune during planning */
PARTTARGET_INITIAL, /* want to prune during executor startup */
- PARTTARGET_EXEC /* want to prune during each plan node scan */
+ PARTTARGET_EXEC, /* want to prune during each plan node scan */
} PartClauseTarget;
/*
diff --git a/src/backend/port/sysv_shmem.c b/src/backend/port/sysv_shmem.c
index f1eb5a1e208..2de280ecb6f 100644
--- a/src/backend/port/sysv_shmem.c
+++ b/src/backend/port/sysv_shmem.c
@@ -86,7 +86,7 @@ typedef enum
SHMSTATE_ATTACHED, /* pertinent to DataDir, has attached PIDs */
SHMSTATE_ENOENT, /* no segment of that ID */
SHMSTATE_FOREIGN, /* exists, but not pertinent to DataDir */
- SHMSTATE_UNATTACHED /* pertinent to DataDir, no attached PIDs */
+ SHMSTATE_UNATTACHED, /* pertinent to DataDir, no attached PIDs */
} IpcMemoryState;
diff --git a/src/backend/postmaster/autovacuum.c b/src/backend/postmaster/autovacuum.c
index 327ea0d45ad..3a6f24a0237 100644
--- a/src/backend/postmaster/autovacuum.c
+++ b/src/backend/postmaster/autovacuum.c
@@ -250,7 +250,7 @@ typedef enum
{
AutoVacForkFailed, /* failed trying to start a worker */
AutoVacRebalance, /* rebalance the cost limits */
- AutoVacNumSignals /* must be last */
+ AutoVacNumSignals, /* must be last */
} AutoVacuumSignal;
/*
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c
index 9cb624eab81..2d0aed50cb9 100644
--- a/src/backend/postmaster/postmaster.c
+++ b/src/backend/postmaster/postmaster.c
@@ -262,7 +262,7 @@ typedef enum
STARTUP_NOT_RUNNING,
STARTUP_RUNNING,
STARTUP_SIGNALED, /* we sent it a SIGQUIT or SIGKILL */
- STARTUP_CRASHED
+ STARTUP_CRASHED,
} StartupStatusEnum;
static StartupStatusEnum StartupStatus = STARTUP_NOT_RUNNING;
@@ -332,7 +332,7 @@ typedef enum
PM_SHUTDOWN_2, /* waiting for archiver and walsenders to
* finish */
PM_WAIT_DEAD_END, /* waiting for dead_end children to exit */
- PM_NO_CHILDREN /* all important children have exited */
+ PM_NO_CHILDREN, /* all important children have exited */
} PMState;
static PMState pmState = PM_INIT;
diff --git a/src/backend/regex/regc_pg_locale.c b/src/backend/regex/regc_pg_locale.c
index 31e6300b5de..42d15b6303e 100644
--- a/src/backend/regex/regc_pg_locale.c
+++ b/src/backend/regex/regc_pg_locale.c
@@ -68,7 +68,7 @@ typedef enum
PG_REGEX_LOCALE_1BYTE, /* Use <ctype.h> functions */
PG_REGEX_LOCALE_WIDE_L, /* Use locale_t <wctype.h> functions */
PG_REGEX_LOCALE_1BYTE_L, /* Use locale_t <ctype.h> functions */
- PG_REGEX_LOCALE_ICU /* Use ICU uchar.h functions */
+ PG_REGEX_LOCALE_ICU, /* Use ICU uchar.h functions */
} PG_Locale_Strategy;
static PG_Locale_Strategy pg_regex_strategy;
diff --git a/src/backend/replication/logical/worker.c b/src/backend/replication/logical/worker.c
index 567485c4a4d..ba67eb156f9 100644
--- a/src/backend/replication/logical/worker.c
+++ b/src/backend/replication/logical/worker.c
@@ -289,7 +289,7 @@ typedef enum
TRANS_LEADER_SERIALIZE,
TRANS_LEADER_SEND_TO_PARALLEL,
TRANS_LEADER_PARTIAL_SERIALIZE,
- TRANS_PARALLEL_APPLY
+ TRANS_PARALLEL_APPLY,
} TransApplyAction;
/* errcontext tracker */
diff --git a/src/backend/replication/pgoutput/pgoutput.c b/src/backend/replication/pgoutput/pgoutput.c
index c1c66848f36..e8add5ee5d9 100644
--- a/src/backend/replication/pgoutput/pgoutput.c
+++ b/src/backend/replication/pgoutput/pgoutput.c
@@ -100,7 +100,7 @@ enum RowFilterPubAction
{
PUBACTION_INSERT,
PUBACTION_UPDATE,
- PUBACTION_DELETE
+ PUBACTION_DELETE,
};
#define NUM_ROWFILTER_PUBACTIONS (PUBACTION_DELETE+1)
diff --git a/src/backend/replication/walreceiver.c b/src/backend/replication/walreceiver.c
index feff7094351..a3128874b2e 100644
--- a/src/backend/replication/walreceiver.c
+++ b/src/backend/replication/walreceiver.c
@@ -122,7 +122,7 @@ typedef enum WalRcvWakeupReason
WALRCV_WAKEUP_TERMINATE,
WALRCV_WAKEUP_PING,
WALRCV_WAKEUP_REPLY,
- WALRCV_WAKEUP_HSFEEDBACK
+ WALRCV_WAKEUP_HSFEEDBACK,
#define NUM_WALRCV_WAKEUPS (WALRCV_WAKEUP_HSFEEDBACK + 1)
} WalRcvWakeupReason;
diff --git a/src/backend/storage/file/fd.c b/src/backend/storage/file/fd.c
index b7607aa1bec..b884df71bf6 100644
--- a/src/backend/storage/file/fd.c
+++ b/src/backend/storage/file/fd.c
@@ -249,7 +249,7 @@ typedef enum
AllocateDescFile,
AllocateDescPipe,
AllocateDescDir,
- AllocateDescRawFD
+ AllocateDescRawFD,
} AllocateDescKind;
typedef struct
diff --git a/src/backend/storage/ipc/procarray.c b/src/backend/storage/ipc/procarray.c
index 2cdad91ed83..4ca2789d10a 100644
--- a/src/backend/storage/ipc/procarray.c
+++ b/src/backend/storage/ipc/procarray.c
@@ -252,7 +252,7 @@ typedef enum GlobalVisHorizonKind
VISHORIZON_SHARED,
VISHORIZON_CATALOG,
VISHORIZON_DATA,
- VISHORIZON_TEMP
+ VISHORIZON_TEMP,
} GlobalVisHorizonKind;
/*
@@ -263,7 +263,7 @@ typedef enum KAXCompressReason
KAX_NO_SPACE, /* need to free up space at array end */
KAX_PRUNE, /* we just pruned old entries */
KAX_TRANSACTION_END, /* we just committed/removed some XIDs */
- KAX_STARTUP_PROCESS_IDLE /* startup process is about to sleep */
+ KAX_STARTUP_PROCESS_IDLE, /* startup process is about to sleep */
} KAXCompressReason;
diff --git a/src/backend/utils/adt/arrayfuncs.c b/src/backend/utils/adt/arrayfuncs.c
index 6a920a02b72..88f0bff687d 100644
--- a/src/backend/utils/adt/arrayfuncs.c
+++ b/src/backend/utils/adt/arrayfuncs.c
@@ -63,7 +63,7 @@ typedef enum
ARRAY_QUOTED_ELEM_COMPLETED,
ARRAY_ELEM_DELIMITED,
ARRAY_LEVEL_COMPLETED,
- ARRAY_LEVEL_DELIMITED
+ ARRAY_LEVEL_DELIMITED,
} ArrayParseState;
/* Working state for array_iterate() */
diff --git a/src/backend/utils/adt/formatting.c b/src/backend/utils/adt/formatting.c
index e27ea8ef97b..8131091f794 100644
--- a/src/backend/utils/adt/formatting.c
+++ b/src/backend/utils/adt/formatting.c
@@ -137,7 +137,7 @@ typedef enum
{
FROM_CHAR_DATE_NONE = 0, /* Value does not affect date mode. */
FROM_CHAR_DATE_GREGORIAN, /* Gregorian (day, month, year) style date */
- FROM_CHAR_DATE_ISOWEEK /* ISO 8601 week date */
+ FROM_CHAR_DATE_ISOWEEK, /* ISO 8601 week date */
} FromCharDateMode;
typedef struct
diff --git a/src/backend/utils/adt/jsonb_gin.c b/src/backend/utils/adt/jsonb_gin.c
index e941439d749..6538b2b3b05 100644
--- a/src/backend/utils/adt/jsonb_gin.c
+++ b/src/backend/utils/adt/jsonb_gin.c
@@ -88,7 +88,7 @@ typedef enum JsonPathGinNodeType
{
JSP_GIN_OR,
JSP_GIN_AND,
- JSP_GIN_ENTRY
+ JSP_GIN_ENTRY,
} JsonPathGinNodeType;
typedef struct JsonPathGinNode JsonPathGinNode;
diff --git a/src/backend/utils/adt/jsonfuncs.c b/src/backend/utils/adt/jsonfuncs.c
index 0bff272f245..aa37c401e56 100644
--- a/src/backend/utils/adt/jsonfuncs.c
+++ b/src/backend/utils/adt/jsonfuncs.c
@@ -201,7 +201,7 @@ typedef enum TypeCat
TYPECAT_ARRAY = 'a',
TYPECAT_COMPOSITE = 'c',
TYPECAT_COMPOSITE_DOMAIN = 'C',
- TYPECAT_DOMAIN = 'd'
+ TYPECAT_DOMAIN = 'd',
} TypeCat;
/* these two are stolen from hstore / record_out, used in populate_record* */
diff --git a/src/backend/utils/adt/like_support.c b/src/backend/utils/adt/like_support.c
index 34e1b709ae9..fbea881fcc2 100644
--- a/src/backend/utils/adt/like_support.c
+++ b/src/backend/utils/adt/like_support.c
@@ -62,12 +62,12 @@ typedef enum
Pattern_Type_Like_IC,
Pattern_Type_Regex,
Pattern_Type_Regex_IC,
- Pattern_Type_Prefix
+ Pattern_Type_Prefix,
} Pattern_Type;
typedef enum
{
- Pattern_Prefix_None, Pattern_Prefix_Partial, Pattern_Prefix_Exact
+ Pattern_Prefix_None, Pattern_Prefix_Partial, Pattern_Prefix_Exact,
} Pattern_Prefix_Status;
static Node *like_regex_support(Node *rawreq, Pattern_Type ptype);
diff --git a/src/backend/utils/adt/rangetypes_gist.c b/src/backend/utils/adt/rangetypes_gist.c
index 08846783818..0fdf821a582 100644
--- a/src/backend/utils/adt/rangetypes_gist.c
+++ b/src/backend/utils/adt/rangetypes_gist.c
@@ -62,7 +62,7 @@ typedef struct
typedef enum
{
SPLIT_LEFT = 0, /* makes initialization to SPLIT_LEFT easier */
- SPLIT_RIGHT
+ SPLIT_RIGHT,
} SplitLR;
/*
diff --git a/src/backend/utils/adt/tsquery.c b/src/backend/utils/adt/tsquery.c
index 67ad876a27c..5ddab6d7cd6 100644
--- a/src/backend/utils/adt/tsquery.c
+++ b/src/backend/utils/adt/tsquery.c
@@ -41,7 +41,7 @@ typedef enum
{
WAITOPERAND = 1,
WAITOPERATOR = 2,
- WAITFIRSTOPERAND = 3
+ WAITFIRSTOPERAND = 3,
} ts_parserstate;
/*
@@ -54,7 +54,7 @@ typedef enum
PT_VAL = 2,
PT_OPR = 3,
PT_OPEN = 4,
- PT_CLOSE = 5
+ PT_CLOSE = 5,
} ts_tokentype;
/*
diff --git a/src/backend/utils/cache/evtcache.c b/src/backend/utils/cache/evtcache.c
index ab5111c90fd..5a721a4046d 100644
--- a/src/backend/utils/cache/evtcache.c
+++ b/src/backend/utils/cache/evtcache.c
@@ -35,7 +35,7 @@ typedef enum
{
ETCS_NEEDS_REBUILD,
ETCS_REBUILD_STARTED,
- ETCS_VALID
+ ETCS_VALID,
} EventTriggerCacheStateType;
typedef struct
diff --git a/src/backend/utils/sort/tuplesort.c b/src/backend/utils/sort/tuplesort.c
index c7a6c03f975..ab6353bdcd1 100644
--- a/src/backend/utils/sort/tuplesort.c
+++ b/src/backend/utils/sort/tuplesort.c
@@ -162,7 +162,7 @@ typedef enum
TSS_BUILDRUNS, /* Loading tuples; writing to tape */
TSS_SORTEDINMEM, /* Sort completed entirely in memory */
TSS_SORTEDONTAPE, /* Sort completed, final run is on tape */
- TSS_FINALMERGE /* Performing final merge on-the-fly */
+ TSS_FINALMERGE, /* Performing final merge on-the-fly */
} TupSortStatus;
/*
diff --git a/src/backend/utils/sort/tuplestore.c b/src/backend/utils/sort/tuplestore.c
index 38bbed46049..0c444378227 100644
--- a/src/backend/utils/sort/tuplestore.c
+++ b/src/backend/utils/sort/tuplestore.c
@@ -73,7 +73,7 @@ typedef enum
{
TSS_INMEM, /* Tuples still fit in memory */
TSS_WRITEFILE, /* Writing to temp file */
- TSS_READFILE /* Reading from temp file */
+ TSS_READFILE, /* Reading from temp file */
} TupStoreStatus;
/*
diff --git a/src/bin/pg_basebackup/bbstreamer.h b/src/bin/pg_basebackup/bbstreamer.h
index f999e635d98..c7dd92d4213 100644
--- a/src/bin/pg_basebackup/bbstreamer.h
+++ b/src/bin/pg_basebackup/bbstreamer.h
@@ -56,7 +56,7 @@ typedef enum
BBSTREAMER_MEMBER_HEADER,
BBSTREAMER_MEMBER_CONTENTS,
BBSTREAMER_MEMBER_TRAILER,
- BBSTREAMER_ARCHIVE_TRAILER
+ BBSTREAMER_ARCHIVE_TRAILER,
} bbstreamer_archive_context;
/*
diff --git a/src/bin/pg_basebackup/pg_basebackup.c b/src/bin/pg_basebackup/pg_basebackup.c
index 1a8cef345dc..f32684a8f23 100644
--- a/src/bin/pg_basebackup/pg_basebackup.c
+++ b/src/bin/pg_basebackup/pg_basebackup.c
@@ -108,7 +108,7 @@ typedef enum
{
NO_WAL,
FETCH_WAL,
- STREAM_WAL
+ STREAM_WAL,
} IncludeWal;
/*
@@ -118,7 +118,7 @@ typedef enum
{
COMPRESS_LOCATION_UNSPECIFIED,
COMPRESS_LOCATION_CLIENT,
- COMPRESS_LOCATION_SERVER
+ COMPRESS_LOCATION_SERVER,
} CompressionLocation;
/* Global options */
diff --git a/src/bin/pg_basebackup/walmethods.h b/src/bin/pg_basebackup/walmethods.h
index 54a22fe6070..6be5ff534ea 100644
--- a/src/bin/pg_basebackup/walmethods.h
+++ b/src/bin/pg_basebackup/walmethods.h
@@ -32,7 +32,7 @@ typedef enum
{
CLOSE_NORMAL,
CLOSE_UNLINK,
- CLOSE_NO_RENAME
+ CLOSE_NO_RENAME,
} WalCloseMethod;
/*
diff --git a/src/bin/pg_checksums/pg_checksums.c b/src/bin/pg_checksums/pg_checksums.c
index e009ba5e0bc..6543d9ce089 100644
--- a/src/bin/pg_checksums/pg_checksums.c
+++ b/src/bin/pg_checksums/pg_checksums.c
@@ -50,7 +50,7 @@ typedef enum
{
PG_MODE_CHECK,
PG_MODE_DISABLE,
- PG_MODE_ENABLE
+ PG_MODE_ENABLE,
} PgChecksumMode;
static PgChecksumMode mode = PG_MODE_CHECK;
diff --git a/src/bin/pg_ctl/pg_ctl.c b/src/bin/pg_ctl/pg_ctl.c
index 4099d240e03..3b145bd8381 100644
--- a/src/bin/pg_ctl/pg_ctl.c
+++ b/src/bin/pg_ctl/pg_ctl.c
@@ -38,14 +38,14 @@ typedef enum
{
SMART_MODE,
FAST_MODE,
- IMMEDIATE_MODE
+ IMMEDIATE_MODE,
} ShutdownMode;
typedef enum
{
POSTMASTER_READY,
POSTMASTER_STILL_STARTING,
- POSTMASTER_FAILED
+ POSTMASTER_FAILED,
} WaitPMResult;
typedef enum
@@ -62,7 +62,7 @@ typedef enum
KILL_COMMAND,
REGISTER_COMMAND,
UNREGISTER_COMMAND,
- RUN_AS_SERVICE_COMMAND
+ RUN_AS_SERVICE_COMMAND,
} CtlCommand;
#define DEFAULT_WAIT 60
diff --git a/src/bin/pg_dump/parallel.c b/src/bin/pg_dump/parallel.c
index da0723ad385..85e6515ac21 100644
--- a/src/bin/pg_dump/parallel.c
+++ b/src/bin/pg_dump/parallel.c
@@ -77,7 +77,7 @@ typedef enum
WRKR_NOT_STARTED = 0,
WRKR_IDLE,
WRKR_WORKING,
- WRKR_TERMINATED
+ WRKR_TERMINATED,
} T_WorkerStatus;
#define WORKER_IS_RUNNING(workerStatus) \
diff --git a/src/bin/pg_dump/parallel.h b/src/bin/pg_dump/parallel.h
index 17f03c1cceb..e26cf9833c8 100644
--- a/src/bin/pg_dump/parallel.h
+++ b/src/bin/pg_dump/parallel.h
@@ -32,7 +32,7 @@ typedef enum
WFW_NO_WAIT,
WFW_GOT_STATUS,
WFW_ONE_IDLE,
- WFW_ALL_IDLE
+ WFW_ALL_IDLE,
} WFW_WaitOption;
/*
diff --git a/src/bin/pg_dump/pg_backup.h b/src/bin/pg_dump/pg_backup.h
index 3a57cdd97d4..9ef2f2017ef 100644
--- a/src/bin/pg_dump/pg_backup.h
+++ b/src/bin/pg_dump/pg_backup.h
@@ -33,7 +33,7 @@ typedef enum trivalue
{
TRI_DEFAULT,
TRI_NO,
- TRI_YES
+ TRI_YES,
} trivalue;
typedef enum _archiveFormat
@@ -42,14 +42,14 @@ typedef enum _archiveFormat
archCustom = 1,
archTar = 3,
archNull = 4,
- archDirectory = 5
+ archDirectory = 5,
} ArchiveFormat;
typedef enum _archiveMode
{
archModeAppend,
archModeWrite,
- archModeRead
+ archModeRead,
} ArchiveMode;
typedef enum _teSection
@@ -57,7 +57,7 @@ typedef enum _teSection
SECTION_NONE = 1, /* comments, ACLs, etc; can be anywhere */
SECTION_PRE_DATA, /* stuff to be processed before data */
SECTION_DATA, /* table data, large objects, LO comments */
- SECTION_POST_DATA /* stuff to be processed after data */
+ SECTION_POST_DATA, /* stuff to be processed after data */
} teSection;
/* We need one enum entry per prepared query in pg_dump */
diff --git a/src/bin/pg_dump/pg_backup_archiver.h b/src/bin/pg_dump/pg_backup_archiver.h
index b07673933d4..917283fd341 100644
--- a/src/bin/pg_dump/pg_backup_archiver.h
+++ b/src/bin/pg_dump/pg_backup_archiver.h
@@ -113,7 +113,7 @@ struct ParallelState;
typedef enum T_Action
{
ACT_DUMP,
- ACT_RESTORE
+ ACT_RESTORE,
} T_Action;
typedef void (*ClosePtrType) (ArchiveHandle *AH);
@@ -151,7 +151,7 @@ typedef enum
{
SQL_SCAN = 0, /* normal */
SQL_IN_SINGLE_QUOTE, /* '...' literal */
- SQL_IN_DOUBLE_QUOTE /* "..." identifier */
+ SQL_IN_DOUBLE_QUOTE, /* "..." identifier */
} sqlparseState;
typedef struct
@@ -166,14 +166,14 @@ typedef enum
STAGE_NONE = 0,
STAGE_INITIALIZING,
STAGE_PROCESSING,
- STAGE_FINALIZING
+ STAGE_FINALIZING,
} ArchiverStage;
typedef enum
{
OUTPUT_SQLCMDS = 0, /* emitting general SQL commands */
OUTPUT_COPYDATA, /* writing COPY data */
- OUTPUT_OTHERDATA /* writing data as INSERT commands */
+ OUTPUT_OTHERDATA, /* writing data as INSERT commands */
} ArchiverOutput;
/*
@@ -199,7 +199,7 @@ typedef enum
{
RESTORE_PASS_MAIN = 0, /* Main pass (most TOC item types) */
RESTORE_PASS_ACL, /* ACL item types */
- RESTORE_PASS_POST_ACL /* Event trigger and matview refresh items */
+ RESTORE_PASS_POST_ACL, /* Event trigger and matview refresh items */
#define RESTORE_PASS_LAST RESTORE_PASS_POST_ACL
} RestorePass;
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c
index 83aeef2751b..7afdbf4d9de 100644
--- a/src/bin/pg_dump/pg_dump.c
+++ b/src/bin/pg_dump/pg_dump.c
@@ -95,7 +95,7 @@ typedef enum OidOptions
{
zeroIsError = 1,
zeroAsStar = 2,
- zeroAsNone = 4
+ zeroAsNone = 4,
} OidOptions;
/* global decls */
diff --git a/src/bin/pg_dump/pg_dump.h b/src/bin/pg_dump/pg_dump.h
index 9036b13f6a5..d8f27f187cb 100644
--- a/src/bin/pg_dump/pg_dump.h
+++ b/src/bin/pg_dump/pg_dump.h
@@ -82,7 +82,7 @@ typedef enum
DO_PUBLICATION,
DO_PUBLICATION_REL,
DO_PUBLICATION_TABLE_IN_SCHEMA,
- DO_SUBSCRIPTION
+ DO_SUBSCRIPTION,
} DumpableObjectType;
/*
diff --git a/src/bin/pg_rewind/filemap.h b/src/bin/pg_rewind/filemap.h
index 48f240dff12..988d4590e02 100644
--- a/src/bin/pg_rewind/filemap.h
+++ b/src/bin/pg_rewind/filemap.h
@@ -24,7 +24,7 @@ typedef enum
FILE_ACTION_NONE, /* no action (we might still copy modified
* blocks based on the parsed WAL) */
FILE_ACTION_TRUNCATE, /* truncate local file to 'newsize' bytes */
- FILE_ACTION_REMOVE /* remove local file / directory / symlink */
+ FILE_ACTION_REMOVE, /* remove local file / directory / symlink */
} file_action_t;
typedef enum
@@ -33,7 +33,7 @@ typedef enum
FILE_TYPE_REGULAR,
FILE_TYPE_DIRECTORY,
- FILE_TYPE_SYMLINK
+ FILE_TYPE_SYMLINK,
} file_type_t;
/*
diff --git a/src/bin/pg_upgrade/pg_upgrade.h b/src/bin/pg_upgrade/pg_upgrade.h
index ba8129d1354..a710f325ded 100644
--- a/src/bin/pg_upgrade/pg_upgrade.h
+++ b/src/bin/pg_upgrade/pg_upgrade.h
@@ -253,7 +253,7 @@ typedef enum
{
TRANSFER_MODE_CLONE,
TRANSFER_MODE_COPY,
- TRANSFER_MODE_LINK
+ TRANSFER_MODE_LINK,
} transferMode;
/*
@@ -266,7 +266,7 @@ typedef enum
PG_REPORT_NONL, /* these too */
PG_REPORT,
PG_WARNING,
- PG_FATAL
+ PG_FATAL,
} eLogType;
diff --git a/src/bin/pg_verifybackup/parse_manifest.c b/src/bin/pg_verifybackup/parse_manifest.c
index f0acd9f1e70..bf0227c6689 100644
--- a/src/bin/pg_verifybackup/parse_manifest.c
+++ b/src/bin/pg_verifybackup/parse_manifest.c
@@ -34,7 +34,7 @@ typedef enum
JM_EXPECT_THIS_WAL_RANGE_FIELD,
JM_EXPECT_THIS_WAL_RANGE_VALUE,
JM_EXPECT_MANIFEST_CHECKSUM_VALUE,
- JM_EXPECT_EOF
+ JM_EXPECT_EOF,
} JsonManifestSemanticState;
/*
@@ -47,7 +47,7 @@ typedef enum
JMFF_SIZE,
JMFF_LAST_MODIFIED,
JMFF_CHECKSUM_ALGORITHM,
- JMFF_CHECKSUM
+ JMFF_CHECKSUM,
} JsonManifestFileField;
/*
@@ -57,7 +57,7 @@ typedef enum
{
JMWRF_TIMELINE,
JMWRF_START_LSN,
- JMWRF_END_LSN
+ JMWRF_END_LSN,
} JsonManifestWALRangeField;
/*
diff --git a/src/bin/pgbench/pgbench.c b/src/bin/pgbench/pgbench.c
index e86c653cd22..2e1650d0ad3 100644
--- a/src/bin/pgbench/pgbench.c
+++ b/src/bin/pgbench/pgbench.c
@@ -227,7 +227,7 @@ typedef enum
{
PART_NONE, /* no partitioning */
PART_RANGE, /* range partitioning */
- PART_HASH /* hash partitioning */
+ PART_HASH, /* hash partitioning */
} partition_method_t;
static partition_method_t partition_method = PART_NONE;
@@ -459,7 +459,7 @@ typedef enum EStatus
/* SQL errors */
ESTATUS_SERIALIZATION_ERROR,
ESTATUS_DEADLOCK_ERROR,
- ESTATUS_OTHER_SQL_ERROR
+ ESTATUS_OTHER_SQL_ERROR,
} EStatus;
/*
@@ -470,7 +470,7 @@ typedef enum TStatus
TSTATUS_IDLE,
TSTATUS_IN_BLOCK,
TSTATUS_CONN_ERROR,
- TSTATUS_OTHER_ERROR
+ TSTATUS_OTHER_ERROR,
} TStatus;
/* Various random sequences are initialized from this one. */
@@ -587,7 +587,7 @@ typedef enum
* aborted because a command failed, CSTATE_FINISHED means success.
*/
CSTATE_ABORTED,
- CSTATE_FINISHED
+ CSTATE_FINISHED,
} ConnectionStateEnum;
/*
@@ -697,7 +697,7 @@ typedef enum MetaCommand
META_ELSE, /* \else */
META_ENDIF, /* \endif */
META_STARTPIPELINE, /* \startpipeline */
- META_ENDPIPELINE /* \endpipeline */
+ META_ENDPIPELINE, /* \endpipeline */
} MetaCommand;
typedef enum QueryMode
diff --git a/src/bin/pgbench/pgbench.h b/src/bin/pgbench/pgbench.h
index f8efa4b868a..acaa54cd6f8 100644
--- a/src/bin/pgbench/pgbench.h
+++ b/src/bin/pgbench/pgbench.h
@@ -37,7 +37,7 @@ typedef enum
PGBT_NULL,
PGBT_INT,
PGBT_DOUBLE,
- PGBT_BOOLEAN
+ PGBT_BOOLEAN,
/* add other types here */
} PgBenchValueType;
@@ -58,7 +58,7 @@ typedef enum PgBenchExprType
{
ENODE_CONSTANT,
ENODE_VARIABLE,
- ENODE_FUNCTION
+ ENODE_FUNCTION,
} PgBenchExprType;
/* List of operators and callable functions */
@@ -100,7 +100,7 @@ typedef enum PgBenchFunction
PGBENCH_CASE,
PGBENCH_HASH_FNV1A,
PGBENCH_HASH_MURMUR2,
- PGBENCH_PERMUTE
+ PGBENCH_PERMUTE,
} PgBenchFunction;
typedef struct PgBenchExpr PgBenchExpr;
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c
index 4dfcf04fe03..82cc0915685 100644
--- a/src/bin/psql/command.c
+++ b/src/bin/psql/command.c
@@ -53,7 +53,7 @@
typedef enum EditableObjectType
{
EditableFunction,
- EditableView
+ EditableView,
} EditableObjectType;
/* local function declarations */
diff --git a/src/bin/psql/command.h b/src/bin/psql/command.h
index 9af85deeae1..b40fcaceb6f 100644
--- a/src/bin/psql/command.h
+++ b/src/bin/psql/command.h
@@ -19,7 +19,7 @@ typedef enum _backslashResult
PSQL_CMD_SKIP_LINE, /* keep building query */
PSQL_CMD_TERMINATE, /* quit program */
PSQL_CMD_NEWEDIT, /* query buffer was changed (e.g., via \e) */
- PSQL_CMD_ERROR /* the execution of the backslash command
+ PSQL_CMD_ERROR, /* the execution of the backslash command
* resulted in an error */
} backslashResult;
diff --git a/src/bin/psql/psqlscanslash.h b/src/bin/psql/psqlscanslash.h
index 7724242f371..c217f958f70 100644
--- a/src/bin/psql/psqlscanslash.h
+++ b/src/bin/psql/psqlscanslash.h
@@ -18,7 +18,7 @@ enum slash_option_type
OT_SQLID, /* treat as SQL identifier */
OT_SQLIDHACK, /* SQL identifier, but don't downcase */
OT_FILEPIPE, /* it's a filename or pipe */
- OT_WHOLE_LINE /* just snarf the rest of the line */
+ OT_WHOLE_LINE, /* just snarf the rest of the line */
};
diff --git a/src/bin/psql/settings.h b/src/bin/psql/settings.h
index 1106954236d..78e9e9692e5 100644
--- a/src/bin/psql/settings.h
+++ b/src/bin/psql/settings.h
@@ -37,21 +37,21 @@ typedef enum
PSQL_ECHO_NONE,
PSQL_ECHO_QUERIES,
PSQL_ECHO_ERRORS,
- PSQL_ECHO_ALL
+ PSQL_ECHO_ALL,
} PSQL_ECHO;
typedef enum
{
PSQL_ECHO_HIDDEN_OFF,
PSQL_ECHO_HIDDEN_ON,
- PSQL_ECHO_HIDDEN_NOEXEC
+ PSQL_ECHO_HIDDEN_NOEXEC,
} PSQL_ECHO_HIDDEN;
typedef enum
{
PSQL_ERROR_ROLLBACK_OFF,
PSQL_ERROR_ROLLBACK_INTERACTIVE,
- PSQL_ERROR_ROLLBACK_ON
+ PSQL_ERROR_ROLLBACK_ON,
} PSQL_ERROR_ROLLBACK;
typedef enum
@@ -59,7 +59,7 @@ typedef enum
PSQL_COMP_CASE_PRESERVE_UPPER,
PSQL_COMP_CASE_PRESERVE_LOWER,
PSQL_COMP_CASE_UPPER,
- PSQL_COMP_CASE_LOWER
+ PSQL_COMP_CASE_LOWER,
} PSQL_COMP_CASE;
typedef enum
@@ -67,14 +67,14 @@ typedef enum
hctl_none = 0,
hctl_ignorespace = 1,
hctl_ignoredups = 2,
- hctl_ignoreboth = hctl_ignorespace | hctl_ignoredups
+ hctl_ignoreboth = hctl_ignorespace | hctl_ignoredups,
} HistControl;
enum trivalue
{
TRI_DEFAULT,
TRI_NO,
- TRI_YES
+ TRI_YES,
};
typedef struct _psqlSettings
diff --git a/src/bin/psql/startup.c b/src/bin/psql/startup.c
index 5a28b6f7132..78526eb9dab 100644
--- a/src/bin/psql/startup.c
+++ b/src/bin/psql/startup.c
@@ -47,7 +47,7 @@ enum _actions
{
ACT_SINGLE_QUERY,
ACT_SINGLE_SLASH,
- ACT_FILE
+ ACT_FILE,
};
typedef struct SimpleActionListCell
diff --git a/src/bin/scripts/reindexdb.c b/src/bin/scripts/reindexdb.c
index 002c41f2219..ab7f190850c 100644
--- a/src/bin/scripts/reindexdb.c
+++ b/src/bin/scripts/reindexdb.c
@@ -30,7 +30,7 @@ typedef enum ReindexType
REINDEX_INDEX,
REINDEX_SCHEMA,
REINDEX_SYSTEM,
- REINDEX_TABLE
+ REINDEX_TABLE,
} ReindexType;
diff --git a/src/bin/scripts/vacuumdb.c b/src/bin/scripts/vacuumdb.c
index d682573dc17..dd0d51659b9 100644
--- a/src/bin/scripts/vacuumdb.c
+++ b/src/bin/scripts/vacuumdb.c
@@ -57,7 +57,7 @@ typedef enum
OBJFILTER_DATABASE = (1 << 1), /* -d | --dbname */
OBJFILTER_TABLE = (1 << 2), /* -t | --table */
OBJFILTER_SCHEMA = (1 << 3), /* -n | --schema */
- OBJFILTER_SCHEMA_EXCLUDE = (1 << 4) /* -N | --exclude-schema */
+ OBJFILTER_SCHEMA_EXCLUDE = (1 << 4), /* -N | --exclude-schema */
} VacObjFilter;
VacObjFilter objfilter = OBJFILTER_NONE;
diff --git a/src/common/cryptohash.c b/src/common/cryptohash.c
index 42dbed72268..c4c322856bd 100644
--- a/src/common/cryptohash.c
+++ b/src/common/cryptohash.c
@@ -44,7 +44,7 @@
typedef enum pg_cryptohash_errno
{
PG_CRYPTOHASH_ERROR_NONE = 0,
- PG_CRYPTOHASH_ERROR_DEST_LEN
+ PG_CRYPTOHASH_ERROR_DEST_LEN,
} pg_cryptohash_errno;
/* Internal pg_cryptohash_ctx structure */
diff --git a/src/common/cryptohash_openssl.c b/src/common/cryptohash_openssl.c
index a654cd4ad40..d9ca5a14090 100644
--- a/src/common/cryptohash_openssl.c
+++ b/src/common/cryptohash_openssl.c
@@ -52,7 +52,7 @@ typedef enum pg_cryptohash_errno
{
PG_CRYPTOHASH_ERROR_NONE = 0,
PG_CRYPTOHASH_ERROR_DEST_LEN,
- PG_CRYPTOHASH_ERROR_OPENSSL
+ PG_CRYPTOHASH_ERROR_OPENSSL,
} pg_cryptohash_errno;
/*
diff --git a/src/common/hmac.c b/src/common/hmac.c
index f0b239dcf09..ea3b8c2bedb 100644
--- a/src/common/hmac.c
+++ b/src/common/hmac.c
@@ -43,7 +43,7 @@ typedef enum pg_hmac_errno
{
PG_HMAC_ERROR_NONE = 0,
PG_HMAC_ERROR_OOM,
- PG_HMAC_ERROR_INTERNAL
+ PG_HMAC_ERROR_INTERNAL,
} pg_hmac_errno;
/* Internal pg_hmac_ctx structure */
diff --git a/src/common/hmac_openssl.c b/src/common/hmac_openssl.c
index 12be542fa27..9164f4fdfee 100644
--- a/src/common/hmac_openssl.c
+++ b/src/common/hmac_openssl.c
@@ -57,7 +57,7 @@ typedef enum pg_hmac_errno
{
PG_HMAC_ERROR_NONE = 0,
PG_HMAC_ERROR_DEST_LEN,
- PG_HMAC_ERROR_OPENSSL
+ PG_HMAC_ERROR_OPENSSL,
} pg_hmac_errno;
/* Internal pg_hmac_ctx structure */
diff --git a/src/common/jsonapi.c b/src/common/jsonapi.c
index 18cd78b86f6..71631dbb85e 100644
--- a/src/common/jsonapi.c
+++ b/src/common/jsonapi.c
@@ -40,7 +40,7 @@ typedef enum /* contexts of JSON parser */
JSON_PARSE_OBJECT_LABEL, /* saw object label, expecting ':' */
JSON_PARSE_OBJECT_NEXT, /* saw object value, expecting ',' or '}' */
JSON_PARSE_OBJECT_COMMA, /* saw object ',', expecting next label */
- JSON_PARSE_END /* saw the end of a document, expect nothing */
+ JSON_PARSE_END, /* saw the end of a document, expect nothing */
} JsonParseContext;
static inline JsonParseErrorType json_lex_string(JsonLexContext *lex);
diff --git a/src/include/access/amapi.h b/src/include/access/amapi.h
index 4476ff7fba1..995725502a6 100644
--- a/src/include/access/amapi.h
+++ b/src/include/access/amapi.h
@@ -51,7 +51,7 @@ typedef enum IndexAMProperty
AMPROP_CAN_UNIQUE,
AMPROP_CAN_MULTI_COL,
AMPROP_CAN_EXCLUDE,
- AMPROP_CAN_INCLUDE
+ AMPROP_CAN_INCLUDE,
} IndexAMProperty;
/*
diff --git a/src/include/access/genam.h b/src/include/access/genam.h
index 4e626c615e7..f31dec6ee0f 100644
--- a/src/include/access/genam.h
+++ b/src/include/access/genam.h
@@ -117,7 +117,7 @@ typedef enum IndexUniqueCheck
UNIQUE_CHECK_NO, /* Don't do any uniqueness checking */
UNIQUE_CHECK_YES, /* Enforce uniqueness at insertion time */
UNIQUE_CHECK_PARTIAL, /* Test uniqueness, but no error */
- UNIQUE_CHECK_EXISTING /* Check if existing tuple is unique */
+ UNIQUE_CHECK_EXISTING, /* Check if existing tuple is unique */
} IndexUniqueCheck;
diff --git a/src/include/access/gin_private.h b/src/include/access/gin_private.h
index 76b99232015..d1df9827f39 100644
--- a/src/include/access/gin_private.h
+++ b/src/include/access/gin_private.h
@@ -143,7 +143,7 @@ typedef enum
{
GPTP_NO_WORK,
GPTP_INSERT,
- GPTP_SPLIT
+ GPTP_SPLIT,
} GinPlaceToPageRC;
typedef struct GinBtreeData
diff --git a/src/include/access/gist_private.h b/src/include/access/gist_private.h
index 18c37f0bd89..82eb7b4bd8f 100644
--- a/src/include/access/gist_private.h
+++ b/src/include/access/gist_private.h
@@ -385,7 +385,7 @@ typedef enum GistOptBufferingMode
{
GIST_OPTION_BUFFERING_AUTO,
GIST_OPTION_BUFFERING_ON,
- GIST_OPTION_BUFFERING_OFF
+ GIST_OPTION_BUFFERING_OFF,
} GistOptBufferingMode;
/*
diff --git a/src/include/access/heapam.h b/src/include/access/heapam.h
index 62fac1d5d29..a2d7a0ea72f 100644
--- a/src/include/access/heapam.h
+++ b/src/include/access/heapam.h
@@ -97,7 +97,7 @@ typedef enum
HEAPTUPLE_LIVE, /* tuple is live (committed, no deleter) */
HEAPTUPLE_RECENTLY_DEAD, /* tuple is dead, but not deletable yet */
HEAPTUPLE_INSERT_IN_PROGRESS, /* inserting xact is still in progress */
- HEAPTUPLE_DELETE_IN_PROGRESS /* deleting xact is still in progress */
+ HEAPTUPLE_DELETE_IN_PROGRESS, /* deleting xact is still in progress */
} HTSV_Result;
/*
diff --git a/src/include/access/multixact.h b/src/include/access/multixact.h
index 246f757f6ab..0be1355892f 100644
--- a/src/include/access/multixact.h
+++ b/src/include/access/multixact.h
@@ -47,7 +47,7 @@ typedef enum
/* an update that doesn't touch "key" columns */
MultiXactStatusNoKeyUpdate = 0x04,
/* other updates, and delete */
- MultiXactStatusUpdate = 0x05
+ MultiXactStatusUpdate = 0x05,
} MultiXactStatus;
#define MaxMultiXactStatus MultiXactStatusUpdate
diff --git a/src/include/access/reloptions.h b/src/include/access/reloptions.h
index 1d5bfa62ffc..3602397cf51 100644
--- a/src/include/access/reloptions.h
+++ b/src/include/access/reloptions.h
@@ -32,7 +32,7 @@ typedef enum relopt_type
RELOPT_TYPE_INT,
RELOPT_TYPE_REAL,
RELOPT_TYPE_ENUM,
- RELOPT_TYPE_STRING
+ RELOPT_TYPE_STRING,
} relopt_type;
/* kinds supported by reloptions */
diff --git a/src/include/access/slru.h b/src/include/access/slru.h
index a8a424d92da..552cc19e685 100644
--- a/src/include/access/slru.h
+++ b/src/include/access/slru.h
@@ -44,7 +44,7 @@ typedef enum
SLRU_PAGE_EMPTY, /* buffer is not in use */
SLRU_PAGE_READ_IN_PROGRESS, /* page is being read in */
SLRU_PAGE_VALID, /* page is valid and not being written */
- SLRU_PAGE_WRITE_IN_PROGRESS /* page is being written out */
+ SLRU_PAGE_WRITE_IN_PROGRESS, /* page is being written out */
} SlruPageStatus;
/*
diff --git a/src/include/access/spgist.h b/src/include/access/spgist.h
index fe31d32dbe9..480e38ad962 100644
--- a/src/include/access/spgist.h
+++ b/src/include/access/spgist.h
@@ -68,7 +68,7 @@ typedef enum spgChooseResultType
{
spgMatchNode = 1, /* descend into existing node */
spgAddNode, /* add a node to the inner tuple */
- spgSplitTuple /* split inner tuple (change its prefix) */
+ spgSplitTuple, /* split inner tuple (change its prefix) */
} spgChooseResultType;
typedef struct spgChooseOut
diff --git a/src/include/access/tableam.h b/src/include/access/tableam.h
index 230bc39cc0e..dbb709b56ce 100644
--- a/src/include/access/tableam.h
+++ b/src/include/access/tableam.h
@@ -61,8 +61,8 @@ typedef enum ScanOptions
SO_ALLOW_PAGEMODE = 1 << 8,
/* unregister snapshot at scan end? */
- SO_TEMP_SNAPSHOT = 1 << 9
-} ScanOptions;
+ SO_TEMP_SNAPSHOT = 1 << 9,
+} ScanOptions;
/*
* Result codes for table_{update,delete,lock_tuple}, and for visibility
@@ -99,7 +99,7 @@ typedef enum TM_Result
TM_BeingModified,
/* lock couldn't be acquired, action skipped. Only used by lock_tuple */
- TM_WouldBlock
+ TM_WouldBlock,
} TM_Result;
/*
@@ -115,7 +115,7 @@ typedef enum TU_UpdateIndexes
TU_All,
/* Only summarized columns were updated, TID is unchanged */
- TU_Summarizing
+ TU_Summarizing,
} TU_UpdateIndexes;
/*
diff --git a/src/include/access/toast_compression.h b/src/include/access/toast_compression.h
index 7f02820caff..b667290fa26 100644
--- a/src/include/access/toast_compression.h
+++ b/src/include/access/toast_compression.h
@@ -38,7 +38,7 @@ typedef enum ToastCompressionId
{
TOAST_PGLZ_COMPRESSION_ID = 0,
TOAST_LZ4_COMPRESSION_ID = 1,
- TOAST_INVALID_COMPRESSION_ID = 2
+ TOAST_INVALID_COMPRESSION_ID = 2,
} ToastCompressionId;
/*
diff --git a/src/include/access/xact.h b/src/include/access/xact.h
index 7d3b9446e62..cb90f227ceb 100644
--- a/src/include/access/xact.h
+++ b/src/include/access/xact.h
@@ -72,8 +72,8 @@ typedef enum
SYNCHRONOUS_COMMIT_REMOTE_WRITE, /* wait for local flush and remote
* write */
SYNCHRONOUS_COMMIT_REMOTE_FLUSH, /* wait for local and remote flush */
- SYNCHRONOUS_COMMIT_REMOTE_APPLY /* wait for local and remote flush and
- * remote apply */
+ SYNCHRONOUS_COMMIT_REMOTE_APPLY, /* wait for local and remote flush and
+ * remote apply */
} SyncCommitLevel;
/* Define the default setting for synchronous_commit */
@@ -132,7 +132,7 @@ typedef enum
XACT_EVENT_PREPARE,
XACT_EVENT_PRE_COMMIT,
XACT_EVENT_PARALLEL_PRE_COMMIT,
- XACT_EVENT_PRE_PREPARE
+ XACT_EVENT_PRE_PREPARE,
} XactEvent;
typedef void (*XactCallback) (XactEvent event, void *arg);
@@ -142,7 +142,7 @@ typedef enum
SUBXACT_EVENT_START_SUB,
SUBXACT_EVENT_COMMIT_SUB,
SUBXACT_EVENT_ABORT_SUB,
- SUBXACT_EVENT_PRE_COMMIT_SUB
+ SUBXACT_EVENT_PRE_COMMIT_SUB,
} SubXactEvent;
typedef void (*SubXactCallback) (SubXactEvent event, SubTransactionId mySubid,
diff --git a/src/include/access/xlog.h b/src/include/access/xlog.h
index 4ad572cb874..a14126d164f 100644
--- a/src/include/access/xlog.h
+++ b/src/include/access/xlog.h
@@ -62,7 +62,7 @@ typedef enum ArchiveMode
{
ARCHIVE_MODE_OFF = 0, /* disabled */
ARCHIVE_MODE_ON, /* enabled while server is running normally */
- ARCHIVE_MODE_ALWAYS /* enabled always (even during recovery) */
+ ARCHIVE_MODE_ALWAYS, /* enabled always (even during recovery) */
} ArchiveMode;
extern PGDLLIMPORT int XLogArchiveMode;
@@ -71,7 +71,7 @@ typedef enum WalLevel
{
WAL_LEVEL_MINIMAL = 0,
WAL_LEVEL_REPLICA,
- WAL_LEVEL_LOGICAL
+ WAL_LEVEL_LOGICAL,
} WalLevel;
/* Compression algorithms for WAL */
@@ -80,7 +80,7 @@ typedef enum WalCompression
WAL_COMPRESSION_NONE = 0,
WAL_COMPRESSION_PGLZ,
WAL_COMPRESSION_LZ4,
- WAL_COMPRESSION_ZSTD
+ WAL_COMPRESSION_ZSTD,
} WalCompression;
/* Recovery states */
@@ -88,7 +88,7 @@ typedef enum RecoveryState
{
RECOVERY_STATE_CRASH = 0, /* crash recovery */
RECOVERY_STATE_ARCHIVE, /* archive recovery */
- RECOVERY_STATE_DONE /* currently in production */
+ RECOVERY_STATE_DONE, /* currently in production */
} RecoveryState;
extern PGDLLIMPORT int wal_level;
@@ -190,7 +190,7 @@ typedef enum WALAvailability
WALAVAIL_EXTENDED, /* WAL segment is reserved by a slot or
* wal_keep_size */
WALAVAIL_UNRESERVED, /* no longer reserved, but not removed yet */
- WALAVAIL_REMOVED /* WAL segment has been removed */
+ WALAVAIL_REMOVED, /* WAL segment has been removed */
} WALAvailability;
struct XLogRecData;
diff --git a/src/include/access/xlog_internal.h b/src/include/access/xlog_internal.h
index 70856adcb06..a6380905fe6 100644
--- a/src/include/access/xlog_internal.h
+++ b/src/include/access/xlog_internal.h
@@ -322,7 +322,7 @@ typedef enum
{
RECOVERY_TARGET_ACTION_PAUSE,
RECOVERY_TARGET_ACTION_PROMOTE,
- RECOVERY_TARGET_ACTION_SHUTDOWN
+ RECOVERY_TARGET_ACTION_SHUTDOWN,
} RecoveryTargetAction;
struct LogicalDecodingContext;
diff --git a/src/include/access/xlogprefetcher.h b/src/include/access/xlogprefetcher.h
index 7dd7f20ad06..892ec3e0272 100644
--- a/src/include/access/xlogprefetcher.h
+++ b/src/include/access/xlogprefetcher.h
@@ -25,7 +25,7 @@ typedef enum
{
RECOVERY_PREFETCH_OFF,
RECOVERY_PREFETCH_ON,
- RECOVERY_PREFETCH_TRY
+ RECOVERY_PREFETCH_TRY,
} RecoveryPrefetchValue;
struct XLogPrefetcher;
diff --git a/src/include/access/xlogreader.h b/src/include/access/xlogreader.h
index da32c7db772..0813722715f 100644
--- a/src/include/access/xlogreader.h
+++ b/src/include/access/xlogreader.h
@@ -350,7 +350,7 @@ typedef enum XLogPageReadResult
{
XLREAD_SUCCESS = 0, /* record is successfully read */
XLREAD_FAIL = -1, /* failed during reading a record */
- XLREAD_WOULDBLOCK = -2 /* nonblocking mode only, no data */
+ XLREAD_WOULDBLOCK = -2, /* nonblocking mode only, no data */
} XLogPageReadResult;
/* Read the next XLog record. Returns NULL on end-of-WAL or failure */
diff --git a/src/include/access/xlogrecovery.h b/src/include/access/xlogrecovery.h
index 47c29350f5d..ee0bc742782 100644
--- a/src/include/access/xlogrecovery.h
+++ b/src/include/access/xlogrecovery.h
@@ -27,7 +27,7 @@ typedef enum
RECOVERY_TARGET_TIME,
RECOVERY_TARGET_NAME,
RECOVERY_TARGET_LSN,
- RECOVERY_TARGET_IMMEDIATE
+ RECOVERY_TARGET_IMMEDIATE,
} RecoveryTargetType;
/*
@@ -37,7 +37,7 @@ typedef enum
{
RECOVERY_TARGET_TIMELINE_CONTROLFILE,
RECOVERY_TARGET_TIMELINE_LATEST,
- RECOVERY_TARGET_TIMELINE_NUMERIC
+ RECOVERY_TARGET_TIMELINE_NUMERIC,
} RecoveryTargetTimeLineGoal;
/* Recovery pause states */
@@ -45,7 +45,7 @@ typedef enum RecoveryPauseState
{
RECOVERY_NOT_PAUSED, /* pause not requested */
RECOVERY_PAUSE_REQUESTED, /* pause requested, but not yet paused */
- RECOVERY_PAUSED /* recovery is paused */
+ RECOVERY_PAUSED, /* recovery is paused */
} RecoveryPauseState;
/* User-settable GUC parameters */
diff --git a/src/include/access/xlogutils.h b/src/include/access/xlogutils.h
index 5b77b11f508..565e1fa6da6 100644
--- a/src/include/access/xlogutils.h
+++ b/src/include/access/xlogutils.h
@@ -49,7 +49,7 @@ typedef enum
STANDBY_DISABLED,
STANDBY_INITIALIZED,
STANDBY_SNAPSHOT_PENDING,
- STANDBY_SNAPSHOT_READY
+ STANDBY_SNAPSHOT_READY,
} HotStandbyState;
extern PGDLLIMPORT HotStandbyState standbyState;
@@ -71,7 +71,7 @@ typedef enum
BLK_NEEDS_REDO, /* changes from WAL record need to be applied */
BLK_DONE, /* block is already up-to-date */
BLK_RESTORED, /* block was restored from a full-page image */
- BLK_NOTFOUND /* block was not found (and hence does not
+ BLK_NOTFOUND, /* block was not found (and hence does not
* need to be replayed) */
} XLogRedoAction;
diff --git a/src/include/backup/backup_manifest.h b/src/include/backup/backup_manifest.h
index 5a481dbcf5a..bd7067ae42e 100644
--- a/src/include/backup/backup_manifest.h
+++ b/src/include/backup/backup_manifest.h
@@ -21,7 +21,7 @@ typedef enum manifest_option
{
MANIFEST_OPTION_YES,
MANIFEST_OPTION_NO,
- MANIFEST_OPTION_FORCE_ENCODE
+ MANIFEST_OPTION_FORCE_ENCODE,
} backup_manifest_option;
typedef struct backup_manifest_info
diff --git a/src/include/catalog/dependency.h b/src/include/catalog/dependency.h
index ffd5e9dc82d..abac0f6da53 100644
--- a/src/include/catalog/dependency.h
+++ b/src/include/catalog/dependency.h
@@ -36,7 +36,7 @@ typedef enum DependencyType
DEPENDENCY_PARTITION_PRI = 'P',
DEPENDENCY_PARTITION_SEC = 'S',
DEPENDENCY_EXTENSION = 'e',
- DEPENDENCY_AUTO_EXTENSION = 'x'
+ DEPENDENCY_AUTO_EXTENSION = 'x',
} DependencyType;
/*
@@ -75,7 +75,7 @@ typedef enum SharedDependencyType
SHARED_DEPENDENCY_ACL = 'a',
SHARED_DEPENDENCY_POLICY = 'r',
SHARED_DEPENDENCY_TABLESPACE = 't',
- SHARED_DEPENDENCY_INVALID = 0
+ SHARED_DEPENDENCY_INVALID = 0,
} SharedDependencyType;
/* expansible list of ObjectAddresses (private in dependency.c) */
@@ -127,7 +127,7 @@ typedef enum ObjectClass
OCLASS_PUBLICATION_NAMESPACE, /* pg_publication_namespace */
OCLASS_PUBLICATION_REL, /* pg_publication_rel */
OCLASS_SUBSCRIPTION, /* pg_subscription */
- OCLASS_TRANSFORM /* pg_transform */
+ OCLASS_TRANSFORM, /* pg_transform */
} ObjectClass;
#define LAST_OCLASS OCLASS_TRANSFORM
diff --git a/src/include/catalog/index.h b/src/include/catalog/index.h
index 096e4830ba1..a4770eaf120 100644
--- a/src/include/catalog/index.h
+++ b/src/include/catalog/index.h
@@ -26,7 +26,7 @@ typedef enum
INDEX_CREATE_SET_READY,
INDEX_CREATE_SET_VALID,
INDEX_DROP_CLEAR_VALID,
- INDEX_DROP_SET_DEAD
+ INDEX_DROP_SET_DEAD,
} IndexStateFlagsAction;
/* options for REINDEX */
diff --git a/src/include/catalog/namespace.h b/src/include/catalog/namespace.h
index 94b0d2df3c4..e78c73c8770 100644
--- a/src/include/catalog/namespace.h
+++ b/src/include/catalog/namespace.h
@@ -45,7 +45,7 @@ typedef enum TempNamespaceStatus
{
TEMP_NAMESPACE_NOT_TEMP, /* nonexistent, or non-temp namespace */
TEMP_NAMESPACE_IDLE, /* exists, belongs to no active session */
- TEMP_NAMESPACE_IN_USE /* belongs to some active session */
+ TEMP_NAMESPACE_IN_USE, /* belongs to some active session */
} TempNamespaceStatus;
/*
@@ -70,8 +70,8 @@ typedef enum RVROption
{
RVR_MISSING_OK = 1 << 0, /* don't error if relation doesn't exist */
RVR_NOWAIT = 1 << 1, /* error if relation cannot be locked */
- RVR_SKIP_LOCKED = 1 << 2 /* skip if relation cannot be locked */
-} RVROption;
+ RVR_SKIP_LOCKED = 1 << 2, /* skip if relation cannot be locked */
+} RVROption;
typedef void (*RangeVarGetRelidCallback) (const RangeVar *relation, Oid relId,
Oid oldRelId, void *callback_arg);
diff --git a/src/include/catalog/objectaccess.h b/src/include/catalog/objectaccess.h
index d8145dd4c63..58d6072d4cd 100644
--- a/src/include/catalog/objectaccess.h
+++ b/src/include/catalog/objectaccess.h
@@ -52,7 +52,7 @@ typedef enum ObjectAccessType
OAT_POST_ALTER,
OAT_NAMESPACE_SEARCH,
OAT_FUNCTION_EXECUTE,
- OAT_TRUNCATE
+ OAT_TRUNCATE,
} ObjectAccessType;
/*
diff --git a/src/include/catalog/pg_cast.h b/src/include/catalog/pg_cast.h
index a2518388b3c..a6bfa0dc68b 100644
--- a/src/include/catalog/pg_cast.h
+++ b/src/include/catalog/pg_cast.h
@@ -74,8 +74,8 @@ typedef enum CoercionCodes
{
COERCION_CODE_IMPLICIT = 'i', /* coercion in context of expression */
COERCION_CODE_ASSIGNMENT = 'a', /* coercion in context of assignment */
- COERCION_CODE_EXPLICIT = 'e' /* explicit cast operation */
-} CoercionCodes;
+ COERCION_CODE_EXPLICIT = 'e', /* explicit cast operation */
+} CoercionCodes;
/*
* The allowable values for pg_cast.castmethod are specified by this enum.
@@ -86,8 +86,8 @@ typedef enum CoercionMethod
{
COERCION_METHOD_FUNCTION = 'f', /* use a function */
COERCION_METHOD_BINARY = 'b', /* types are binary-compatible */
- COERCION_METHOD_INOUT = 'i' /* use input/output functions */
-} CoercionMethod;
+ COERCION_METHOD_INOUT = 'i', /* use input/output functions */
+} CoercionMethod;
#endif /* EXPOSE_TO_CLIENT_CODE */
diff --git a/src/include/catalog/pg_constraint.h b/src/include/catalog/pg_constraint.h
index 9b9d8faf356..a026b42515f 100644
--- a/src/include/catalog/pg_constraint.h
+++ b/src/include/catalog/pg_constraint.h
@@ -202,7 +202,7 @@ typedef enum ConstraintCategory
{
CONSTRAINT_RELATION,
CONSTRAINT_DOMAIN,
- CONSTRAINT_ASSERTION /* for future expansion */
+ CONSTRAINT_ASSERTION, /* for future expansion */
} ConstraintCategory;
diff --git a/src/include/catalog/pg_control.h b/src/include/catalog/pg_control.h
index 11366132596..2ae72e3b266 100644
--- a/src/include/catalog/pg_control.h
+++ b/src/include/catalog/pg_control.h
@@ -93,7 +93,7 @@ typedef enum DBState
DB_SHUTDOWNING,
DB_IN_CRASH_RECOVERY,
DB_IN_ARCHIVE_RECOVERY,
- DB_IN_PRODUCTION
+ DB_IN_PRODUCTION,
} DBState;
/*
diff --git a/src/include/catalog/pg_init_privs.h b/src/include/catalog/pg_init_privs.h
index 3f3df954a8a..027f738dbce 100644
--- a/src/include/catalog/pg_init_privs.h
+++ b/src/include/catalog/pg_init_privs.h
@@ -77,7 +77,7 @@ DECLARE_UNIQUE_INDEX_PKEY(pg_init_privs_o_c_o_index, 3395, InitPrivsObjIndexId,
typedef enum InitPrivsType
{
INITPRIVS_INITDB = 'i',
- INITPRIVS_EXTENSION = 'e'
-} InitPrivsType;
+ INITPRIVS_EXTENSION = 'e',
+} InitPrivsType;
#endif /* PG_INIT_PRIVS_H */
diff --git a/src/include/commands/copyfrom_internal.h b/src/include/commands/copyfrom_internal.h
index ac2c16f8b86..5ec41589cdc 100644
--- a/src/include/commands/copyfrom_internal.h
+++ b/src/include/commands/copyfrom_internal.h
@@ -25,7 +25,7 @@ typedef enum CopySource
{
COPY_FILE, /* from file (or a piped program) */
COPY_FRONTEND, /* from frontend */
- COPY_CALLBACK /* from callback function */
+ COPY_CALLBACK, /* from callback function */
} CopySource;
/*
@@ -36,7 +36,7 @@ typedef enum EolType
EOL_UNKNOWN,
EOL_NL,
EOL_CR,
- EOL_CRNL
+ EOL_CRNL,
} EolType;
/*
@@ -47,7 +47,7 @@ typedef enum CopyInsertMethod
CIM_SINGLE, /* use table_tuple_insert or ExecForeignInsert */
CIM_MULTI, /* always use table_multi_insert or
* ExecForeignBatchInsert */
- CIM_MULTI_CONDITIONAL /* use table_multi_insert or
+ CIM_MULTI_CONDITIONAL, /* use table_multi_insert or
* ExecForeignBatchInsert only if valid */
} CopyInsertMethod;
diff --git a/src/include/commands/explain.h b/src/include/commands/explain.h
index 3d3e632a0cc..f9525fb572a 100644
--- a/src/include/commands/explain.h
+++ b/src/include/commands/explain.h
@@ -22,7 +22,7 @@ typedef enum ExplainFormat
EXPLAIN_FORMAT_TEXT,
EXPLAIN_FORMAT_XML,
EXPLAIN_FORMAT_JSON,
- EXPLAIN_FORMAT_YAML
+ EXPLAIN_FORMAT_YAML,
} ExplainFormat;
typedef struct ExplainWorkersState
diff --git a/src/include/common/checksum_helper.h b/src/include/common/checksum_helper.h
index a74deef67b6..06039142cf1 100644
--- a/src/include/common/checksum_helper.h
+++ b/src/include/common/checksum_helper.h
@@ -33,7 +33,7 @@ typedef enum pg_checksum_type
CHECKSUM_TYPE_SHA224,
CHECKSUM_TYPE_SHA256,
CHECKSUM_TYPE_SHA384,
- CHECKSUM_TYPE_SHA512
+ CHECKSUM_TYPE_SHA512,
} pg_checksum_type;
/*
diff --git a/src/include/common/compression.h b/src/include/common/compression.h
index 38aae9dd873..c94ace6e8a3 100644
--- a/src/include/common/compression.h
+++ b/src/include/common/compression.h
@@ -23,7 +23,7 @@ typedef enum pg_compress_algorithm
PG_COMPRESSION_NONE,
PG_COMPRESSION_GZIP,
PG_COMPRESSION_LZ4,
- PG_COMPRESSION_ZSTD
+ PG_COMPRESSION_ZSTD,
} pg_compress_algorithm;
#define PG_COMPRESSION_OPTION_WORKERS (1 << 0)
diff --git a/src/include/common/cryptohash.h b/src/include/common/cryptohash.h
index 24b6dbebbd8..ee267039590 100644
--- a/src/include/common/cryptohash.h
+++ b/src/include/common/cryptohash.h
@@ -23,7 +23,7 @@ typedef enum
PG_SHA224,
PG_SHA256,
PG_SHA384,
- PG_SHA512
+ PG_SHA512,
} pg_cryptohash_type;
/* opaque context, private to each cryptohash implementation */
diff --git a/src/include/common/file_utils.h b/src/include/common/file_utils.h
index 49d523e611f..3bb20170cbd 100644
--- a/src/include/common/file_utils.h
+++ b/src/include/common/file_utils.h
@@ -21,13 +21,13 @@ typedef enum PGFileType
PGFILETYPE_UNKNOWN,
PGFILETYPE_REG,
PGFILETYPE_DIR,
- PGFILETYPE_LNK
+ PGFILETYPE_LNK,
} PGFileType;
typedef enum DataDirSyncMethod
{
DATA_DIR_SYNC_METHOD_FSYNC,
- DATA_DIR_SYNC_METHOD_SYNCFS
+ DATA_DIR_SYNC_METHOD_SYNCFS,
} DataDirSyncMethod;
struct iovec; /* avoid including port/pg_iovec.h here */
diff --git a/src/include/common/jsonapi.h b/src/include/common/jsonapi.h
index 1207e542f7a..2f8533c2b73 100644
--- a/src/include/common/jsonapi.h
+++ b/src/include/common/jsonapi.h
@@ -30,7 +30,7 @@ typedef enum JsonTokenType
JSON_TOKEN_TRUE,
JSON_TOKEN_FALSE,
JSON_TOKEN_NULL,
- JSON_TOKEN_END
+ JSON_TOKEN_END,
} JsonTokenType;
typedef enum JsonParseErrorType
@@ -54,7 +54,7 @@ typedef enum JsonParseErrorType
JSON_UNICODE_UNTRANSLATABLE,
JSON_UNICODE_HIGH_SURROGATE,
JSON_UNICODE_LOW_SURROGATE,
- JSON_SEM_ACTION_FAILED /* error should already be reported */
+ JSON_SEM_ACTION_FAILED, /* error should already be reported */
} JsonParseErrorType;
diff --git a/src/include/common/relpath.h b/src/include/common/relpath.h
index 511c21682ec..35e73d31114 100644
--- a/src/include/common/relpath.h
+++ b/src/include/common/relpath.h
@@ -50,7 +50,7 @@ typedef enum ForkNumber
MAIN_FORKNUM = 0,
FSM_FORKNUM,
VISIBILITYMAP_FORKNUM,
- INIT_FORKNUM
+ INIT_FORKNUM,
/*
* NOTE: if you add a new fork, change MAX_FORKNUM and possibly
diff --git a/src/include/common/saslprep.h b/src/include/common/saslprep.h
index f622db962f8..a90b8e1320a 100644
--- a/src/include/common/saslprep.h
+++ b/src/include/common/saslprep.h
@@ -22,7 +22,7 @@ typedef enum
SASLPREP_SUCCESS = 0,
SASLPREP_OOM = -1, /* out of memory (only in frontend) */
SASLPREP_INVALID_UTF8 = -2, /* input is not a valid UTF-8 string */
- SASLPREP_PROHIBITED = -3 /* output would contain prohibited characters */
+ SASLPREP_PROHIBITED = -3, /* output would contain prohibited characters */
} pg_saslprep_rc;
extern pg_saslprep_rc pg_saslprep(const char *input, char **output);
diff --git a/src/include/executor/hashjoin.h b/src/include/executor/hashjoin.h
index cb2a2cde8a8..eb3af804f79 100644
--- a/src/include/executor/hashjoin.h
+++ b/src/include/executor/hashjoin.h
@@ -236,7 +236,7 @@ typedef enum ParallelHashGrowth
/* The memory budget would be exhausted, so we need to repartition. */
PHJ_GROWTH_NEED_MORE_BATCHES,
/* Repartitioning didn't help last time, so don't try to do that again. */
- PHJ_GROWTH_DISABLED
+ PHJ_GROWTH_DISABLED,
} ParallelHashGrowth;
/*
diff --git a/src/include/fe_utils/conditional.h b/src/include/fe_utils/conditional.h
index 36e72c977ce..5852feaf47f 100644
--- a/src/include/fe_utils/conditional.h
+++ b/src/include/fe_utils/conditional.h
@@ -39,7 +39,7 @@ typedef enum ifState
* false parent branch */
IFSTATE_ELSE_TRUE, /* currently in an \else that is true and all
* parent branches (if any) are true */
- IFSTATE_ELSE_FALSE /* currently in an \else that is false or
+ IFSTATE_ELSE_FALSE, /* currently in an \else that is false or
* ignored */
} ifState;
diff --git a/src/include/fe_utils/print.h b/src/include/fe_utils/print.h
index cc6652def9e..13ebb003624 100644
--- a/src/include/fe_utils/print.h
+++ b/src/include/fe_utils/print.h
@@ -36,7 +36,7 @@ enum printFormat
PRINT_LATEX_LONGTABLE,
PRINT_TROFF_MS,
PRINT_UNALIGNED,
- PRINT_WRAPPED
+ PRINT_WRAPPED,
/* add your favourite output format here ... */
};
@@ -55,7 +55,7 @@ typedef enum printTextRule
PRINT_RULE_TOP, /* top horizontal line */
PRINT_RULE_MIDDLE, /* intra-data horizontal line */
PRINT_RULE_BOTTOM, /* bottom horizontal line */
- PRINT_RULE_DATA /* data line (hrule is unused here) */
+ PRINT_RULE_DATA, /* data line (hrule is unused here) */
} printTextRule;
typedef enum printTextLineWrap
@@ -63,7 +63,7 @@ typedef enum printTextLineWrap
/* Line wrapping conditions */
PRINT_LINE_WRAP_NONE, /* No wrapping */
PRINT_LINE_WRAP_WRAP, /* Wraparound due to overlength line */
- PRINT_LINE_WRAP_NEWLINE /* Newline in data */
+ PRINT_LINE_WRAP_NEWLINE, /* Newline in data */
} printTextLineWrap;
typedef enum printXheaderWidthType
@@ -99,7 +99,7 @@ typedef struct printTextFormat
typedef enum unicode_linestyle
{
UNICODE_LINESTYLE_SINGLE = 0,
- UNICODE_LINESTYLE_DOUBLE
+ UNICODE_LINESTYLE_DOUBLE,
} unicode_linestyle;
struct separator
diff --git a/src/include/fe_utils/psqlscan.h b/src/include/fe_utils/psqlscan.h
index 6a90fcab9eb..a9a190164ea 100644
--- a/src/include/fe_utils/psqlscan.h
+++ b/src/include/fe_utils/psqlscan.h
@@ -32,7 +32,7 @@ typedef enum
PSCAN_SEMICOLON, /* found command-ending semicolon */
PSCAN_BACKSLASH, /* found backslash command */
PSCAN_INCOMPLETE, /* end of line, SQL statement incomplete */
- PSCAN_EOL /* end of line, SQL possibly complete */
+ PSCAN_EOL, /* end of line, SQL possibly complete */
} PsqlScanResult;
/* Prompt type returned by psql_scan() */
@@ -45,7 +45,7 @@ typedef enum _promptStatus
PROMPT_DOUBLEQUOTE,
PROMPT_DOLLARQUOTE,
PROMPT_PAREN,
- PROMPT_COPY
+ PROMPT_COPY,
} promptStatus_t;
/* Quoting request types for get_variable() callback */
@@ -54,7 +54,7 @@ typedef enum
PQUOTE_PLAIN, /* just return the actual value */
PQUOTE_SQL_LITERAL, /* add quotes to make a valid SQL literal */
PQUOTE_SQL_IDENT, /* quote if needed to make a SQL identifier */
- PQUOTE_SHELL_ARG /* quote if needed to be safe in a shell cmd */
+ PQUOTE_SHELL_ARG, /* quote if needed to be safe in a shell cmd */
} PsqlScanQuoteType;
/* Callback functions to be used by the lexer */
diff --git a/src/include/fmgr.h b/src/include/fmgr.h
index b120f5e7fef..edf61e53f34 100644
--- a/src/include/fmgr.h
+++ b/src/include/fmgr.h
@@ -783,7 +783,7 @@ typedef enum FmgrHookEventType
{
FHET_START,
FHET_END,
- FHET_ABORT
+ FHET_ABORT,
} FmgrHookEventType;
typedef bool (*needs_fmgr_hook_type) (Oid fn_oid);
diff --git a/src/include/funcapi.h b/src/include/funcapi.h
index cc0cca32725..15e8ba17dfd 100644
--- a/src/include/funcapi.h
+++ b/src/include/funcapi.h
@@ -149,7 +149,7 @@ typedef enum TypeFuncClass
TYPEFUNC_COMPOSITE, /* determinable rowtype result */
TYPEFUNC_COMPOSITE_DOMAIN, /* domain over determinable rowtype result */
TYPEFUNC_RECORD, /* indeterminate rowtype result */
- TYPEFUNC_OTHER /* bogus type, eg pseudotype */
+ TYPEFUNC_OTHER, /* bogus type, eg pseudotype */
} TypeFuncClass;
extern TypeFuncClass get_call_result_type(FunctionCallInfo fcinfo,
diff --git a/src/include/libpq/crypt.h b/src/include/libpq/crypt.h
index ddcd27469ac..d62ad4371ab 100644
--- a/src/include/libpq/crypt.h
+++ b/src/include/libpq/crypt.h
@@ -28,7 +28,7 @@ typedef enum PasswordType
{
PASSWORD_TYPE_PLAINTEXT = 0,
PASSWORD_TYPE_MD5,
- PASSWORD_TYPE_SCRAM_SHA_256
+ PASSWORD_TYPE_SCRAM_SHA_256,
} PasswordType;
extern PasswordType get_password_type(const char *shadow_pass);
diff --git a/src/include/libpq/hba.h b/src/include/libpq/hba.h
index 189f6d0df24..8ea837ae82a 100644
--- a/src/include/libpq/hba.h
+++ b/src/include/libpq/hba.h
@@ -38,7 +38,7 @@ typedef enum UserAuth
uaLDAP,
uaCert,
uaRADIUS,
- uaPeer
+ uaPeer,
#define USER_AUTH_LAST uaPeer /* Must be last value of this enum */
} UserAuth;
@@ -51,7 +51,7 @@ typedef enum IPCompareMethod
ipCmpMask,
ipCmpSameHost,
ipCmpSameNet,
- ipCmpAll
+ ipCmpAll,
} IPCompareMethod;
typedef enum ConnType
@@ -68,13 +68,13 @@ typedef enum ClientCertMode
{
clientCertOff,
clientCertCA,
- clientCertFull
+ clientCertFull,
} ClientCertMode;
typedef enum ClientCertName
{
clientCertCN,
- clientCertDN
+ clientCertDN,
} ClientCertName;
/*
diff --git a/src/include/libpq/libpq-be.h b/src/include/libpq/libpq-be.h
index a0b74c8095f..c57ed12fb6d 100644
--- a/src/include/libpq/libpq-be.h
+++ b/src/include/libpq/libpq-be.h
@@ -65,7 +65,7 @@ typedef enum CAC_state
CAC_SHUTDOWN,
CAC_RECOVERY,
CAC_NOTCONSISTENT,
- CAC_TOOMANY
+ CAC_TOOMANY,
} CAC_state;
diff --git a/src/include/miscadmin.h b/src/include/miscadmin.h
index 7232b03e379..f0cc651435c 100644
--- a/src/include/miscadmin.h
+++ b/src/include/miscadmin.h
@@ -409,7 +409,7 @@ typedef enum ProcessingMode
{
BootstrapProcessing, /* bootstrap creation of template database */
InitProcessing, /* initializing system */
- NormalProcessing /* normal processing */
+ NormalProcessing, /* normal processing */
} ProcessingMode;
extern PGDLLIMPORT ProcessingMode Mode;
diff --git a/src/include/nodes/bitmapset.h b/src/include/nodes/bitmapset.h
index 14de6a9ff1e..161243b2d0e 100644
--- a/src/include/nodes/bitmapset.h
+++ b/src/include/nodes/bitmapset.h
@@ -62,7 +62,7 @@ typedef enum
BMS_EQUAL, /* sets are equal */
BMS_SUBSET1, /* first set is a subset of the second */
BMS_SUBSET2, /* second set is a subset of the first */
- BMS_DIFFERENT /* neither set is a subset of the other */
+ BMS_DIFFERENT, /* neither set is a subset of the other */
} BMS_Comparison;
/* result of bms_membership */
@@ -70,7 +70,7 @@ typedef enum
{
BMS_EMPTY_SET, /* 0 members */
BMS_SINGLETON, /* 1 member */
- BMS_MULTIPLE /* >1 member */
+ BMS_MULTIPLE, /* >1 member */
} BMS_Membership;
diff --git a/src/include/nodes/execnodes.h b/src/include/nodes/execnodes.h
index 108d69ba287..5d7f17dee07 100644
--- a/src/include/nodes/execnodes.h
+++ b/src/include/nodes/execnodes.h
@@ -295,7 +295,7 @@ typedef enum
{
ExprSingleResult, /* expression does not return a set */
ExprMultipleResult, /* this result is an element of a set */
- ExprEndResult /* there are no more elements in the set */
+ ExprEndResult, /* there are no more elements in the set */
} ExprDoneCond;
/*
@@ -309,7 +309,7 @@ typedef enum
SFRM_ValuePerCall = 0x01, /* one value returned per call */
SFRM_Materialize = 0x02, /* result set instantiated in Tuplestore */
SFRM_Materialize_Random = 0x04, /* Tuplestore needs randomAccess */
- SFRM_Materialize_Preferred = 0x08 /* caller prefers Tuplestore */
+ SFRM_Materialize_Preferred = 0x08, /* caller prefers Tuplestore */
} SetFunctionReturnMode;
/*
@@ -989,7 +989,7 @@ typedef struct SubPlanState
typedef enum DomainConstraintType
{
DOM_CONSTRAINT_NOTNULL,
- DOM_CONSTRAINT_CHECK
+ DOM_CONSTRAINT_CHECK,
} DomainConstraintType;
typedef struct DomainConstraintState
@@ -1669,7 +1669,7 @@ typedef enum
{
BM_INITIAL,
BM_INPROGRESS,
- BM_FINISHED
+ BM_FINISHED,
} SharedBitmapState;
/* ----------------
@@ -2466,7 +2466,7 @@ typedef enum WindowAggStatus
WINDOWAGG_DONE, /* No more processing to do */
WINDOWAGG_RUN, /* Normal processing of window funcs */
WINDOWAGG_PASSTHROUGH, /* Don't eval window funcs */
- WINDOWAGG_PASSTHROUGH_STRICT /* Pass-through plus don't store new
+ WINDOWAGG_PASSTHROUGH_STRICT, /* Pass-through plus don't store new
* tuples during spool */
} WindowAggStatus;
@@ -2744,7 +2744,7 @@ typedef enum
LIMIT_WINDOWEND_TIES, /* have returned a tied row */
LIMIT_SUBPLANEOF, /* at EOF of subplan (within window) */
LIMIT_WINDOWEND, /* stepped off end of window */
- LIMIT_WINDOWSTART /* stepped off beginning of window */
+ LIMIT_WINDOWSTART, /* stepped off beginning of window */
} LimitStateCond;
typedef struct LimitState
diff --git a/src/include/nodes/lockoptions.h b/src/include/nodes/lockoptions.h
index bc5e98336f1..71c46fdd8ec 100644
--- a/src/include/nodes/lockoptions.h
+++ b/src/include/nodes/lockoptions.h
@@ -24,7 +24,7 @@ typedef enum LockClauseStrength
LCS_FORKEYSHARE, /* FOR KEY SHARE */
LCS_FORSHARE, /* FOR SHARE */
LCS_FORNOKEYUPDATE, /* FOR NO KEY UPDATE */
- LCS_FORUPDATE /* FOR UPDATE */
+ LCS_FORUPDATE, /* FOR UPDATE */
} LockClauseStrength;
/*
@@ -40,7 +40,7 @@ typedef enum LockWaitPolicy
/* Skip rows that can't be locked (SKIP LOCKED) */
LockWaitSkip,
/* Raise an error if a row cannot be locked (NOWAIT) */
- LockWaitError
+ LockWaitError,
} LockWaitPolicy;
/*
@@ -55,7 +55,7 @@ typedef enum LockTupleMode
/* SELECT FOR NO KEY UPDATE, and UPDATEs that don't modify key columns */
LockTupleNoKeyExclusive,
/* SELECT FOR UPDATE, UPDATEs that modify key columns, and DELETE */
- LockTupleExclusive
+ LockTupleExclusive,
} LockTupleMode;
#endif /* LOCKOPTIONS_H */
diff --git a/src/include/nodes/nodes.h b/src/include/nodes/nodes.h
index f8e8fe699ab..4c32682e4ce 100644
--- a/src/include/nodes/nodes.h
+++ b/src/include/nodes/nodes.h
@@ -280,7 +280,7 @@ typedef enum CmdType
CMD_MERGE, /* merge stmt */
CMD_UTILITY, /* cmds like create, destroy, copy, vacuum,
* etc. */
- CMD_NOTHING /* dummy command for instead nothing rules
+ CMD_NOTHING, /* dummy command for instead nothing rules
* with qual */
} CmdType;
@@ -324,7 +324,7 @@ typedef enum JoinType
* by the executor (nor, indeed, by most of the planner).
*/
JOIN_UNIQUE_OUTER, /* LHS path must be made unique */
- JOIN_UNIQUE_INNER /* RHS path must be made unique */
+ JOIN_UNIQUE_INNER, /* RHS path must be made unique */
/*
* We might need additional join types someday.
@@ -364,7 +364,7 @@ typedef enum AggStrategy
AGG_PLAIN, /* simple agg across all input rows */
AGG_SORTED, /* grouped agg, input must be sorted */
AGG_HASHED, /* grouped agg, use internal hashtable */
- AGG_MIXED /* grouped agg, hash and sort both used */
+ AGG_MIXED, /* grouped agg, hash and sort both used */
} AggStrategy;
/*
@@ -388,7 +388,7 @@ typedef enum AggSplit
/* Initial phase of partial aggregation, with serialization: */
AGGSPLIT_INITIAL_SERIAL = AGGSPLITOP_SKIPFINAL | AGGSPLITOP_SERIALIZE,
/* Final phase of partial aggregation, with deserialization: */
- AGGSPLIT_FINAL_DESERIAL = AGGSPLITOP_COMBINE | AGGSPLITOP_DESERIALIZE
+ AGGSPLIT_FINAL_DESERIAL = AGGSPLITOP_COMBINE | AGGSPLITOP_DESERIALIZE,
} AggSplit;
/* Test whether an AggSplit value selects each primitive option: */
@@ -408,13 +408,13 @@ typedef enum SetOpCmd
SETOPCMD_INTERSECT,
SETOPCMD_INTERSECT_ALL,
SETOPCMD_EXCEPT,
- SETOPCMD_EXCEPT_ALL
+ SETOPCMD_EXCEPT_ALL,
} SetOpCmd;
typedef enum SetOpStrategy
{
SETOP_SORTED, /* input must be sorted */
- SETOP_HASHED /* use internal hashtable */
+ SETOP_HASHED, /* use internal hashtable */
} SetOpStrategy;
/*
@@ -427,7 +427,7 @@ typedef enum OnConflictAction
{
ONCONFLICT_NONE, /* No "ON CONFLICT" clause */
ONCONFLICT_NOTHING, /* ON CONFLICT ... DO NOTHING */
- ONCONFLICT_UPDATE /* ON CONFLICT ... DO UPDATE */
+ ONCONFLICT_UPDATE, /* ON CONFLICT ... DO UPDATE */
} OnConflictAction;
/*
diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h
index f637937cd20..cf7e79062ed 100644
--- a/src/include/nodes/parsenodes.h
+++ b/src/include/nodes/parsenodes.h
@@ -34,7 +34,7 @@ typedef enum OverridingKind
{
OVERRIDING_NOT_SET = 0,
OVERRIDING_USER_VALUE,
- OVERRIDING_SYSTEM_VALUE
+ OVERRIDING_SYSTEM_VALUE,
} OverridingKind;
/* Possible sources of a Query */
@@ -44,7 +44,7 @@ typedef enum QuerySource
QSRC_PARSER, /* added by parse analysis (now unused) */
QSRC_INSTEAD_RULE, /* added by unconditional INSTEAD rule */
QSRC_QUAL_INSTEAD_RULE, /* added by conditional INSTEAD rule */
- QSRC_NON_INSTEAD_RULE /* added by non-INSTEAD rule */
+ QSRC_NON_INSTEAD_RULE, /* added by non-INSTEAD rule */
} QuerySource;
/* Sort ordering options for ORDER BY and CREATE INDEX */
@@ -53,14 +53,14 @@ typedef enum SortByDir
SORTBY_DEFAULT,
SORTBY_ASC,
SORTBY_DESC,
- SORTBY_USING /* not allowed in CREATE INDEX ... */
+ SORTBY_USING, /* not allowed in CREATE INDEX ... */
} SortByDir;
typedef enum SortByNulls
{
SORTBY_NULLS_DEFAULT,
SORTBY_NULLS_FIRST,
- SORTBY_NULLS_LAST
+ SORTBY_NULLS_LAST,
} SortByNulls;
/* Options for [ ALL | DISTINCT ] */
@@ -68,7 +68,7 @@ typedef enum SetQuantifier
{
SET_QUANTIFIER_DEFAULT,
SET_QUANTIFIER_ALL,
- SET_QUANTIFIER_DISTINCT
+ SET_QUANTIFIER_DISTINCT,
} SetQuantifier;
/*
@@ -320,7 +320,7 @@ typedef enum A_Expr_Kind
AEXPR_BETWEEN, /* name must be "BETWEEN" */
AEXPR_NOT_BETWEEN, /* name must be "NOT BETWEEN" */
AEXPR_BETWEEN_SYM, /* name must be "BETWEEN SYMMETRIC" */
- AEXPR_NOT_BETWEEN_SYM /* name must be "NOT BETWEEN SYMMETRIC" */
+ AEXPR_NOT_BETWEEN_SYM, /* name must be "NOT BETWEEN SYMMETRIC" */
} A_Expr_Kind;
typedef struct A_Expr
@@ -392,7 +392,7 @@ typedef enum RoleSpecType
ROLESPEC_CURRENT_ROLE, /* role spec is CURRENT_ROLE */
ROLESPEC_CURRENT_USER, /* role spec is CURRENT_USER */
ROLESPEC_SESSION_USER, /* role spec is SESSION_USER */
- ROLESPEC_PUBLIC /* role name is "public" */
+ ROLESPEC_PUBLIC, /* role name is "public" */
} RoleSpecType;
typedef struct RoleSpec
@@ -799,7 +799,7 @@ typedef enum DefElemAction
DEFELEM_UNSPEC, /* no action given */
DEFELEM_SET,
DEFELEM_ADD,
- DEFELEM_DROP
+ DEFELEM_DROP,
} DefElemAction;
typedef struct DefElem
@@ -865,7 +865,7 @@ typedef enum PartitionStrategy
{
PARTITION_STRATEGY_LIST = 'l',
PARTITION_STRATEGY_RANGE = 'r',
- PARTITION_STRATEGY_HASH = 'h'
+ PARTITION_STRATEGY_HASH = 'h',
} PartitionStrategy;
/*
@@ -917,7 +917,7 @@ typedef enum PartitionRangeDatumKind
{
PARTITION_RANGE_DATUM_MINVALUE = -1, /* less than any other value */
PARTITION_RANGE_DATUM_VALUE = 0, /* a specific (bounded) value */
- PARTITION_RANGE_DATUM_MAXVALUE = 1 /* greater than any other value */
+ PARTITION_RANGE_DATUM_MAXVALUE = 1, /* greater than any other value */
} PartitionRangeDatumKind;
typedef struct PartitionRangeDatum
@@ -1018,7 +1018,7 @@ typedef enum RTEKind
RTE_VALUES, /* VALUES (<exprlist>), (<exprlist>), ... */
RTE_CTE, /* common table expr (WITH list element) */
RTE_NAMEDTUPLESTORE, /* tuplestore, e.g. for AFTER triggers */
- RTE_RESULT /* RTE represents an empty FROM clause; such
+ RTE_RESULT, /* RTE represents an empty FROM clause; such
* RTEs are added by the planner, they're not
* present during parsing or rewriting */
} RTEKind;
@@ -1315,7 +1315,7 @@ typedef enum WCOKind
WCO_RLS_UPDATE_CHECK, /* RLS UPDATE WITH CHECK policy */
WCO_RLS_CONFLICT_CHECK, /* RLS ON CONFLICT DO UPDATE USING policy */
WCO_RLS_MERGE_UPDATE_CHECK, /* RLS MERGE UPDATE USING policy */
- WCO_RLS_MERGE_DELETE_CHECK /* RLS MERGE DELETE USING policy */
+ WCO_RLS_MERGE_DELETE_CHECK, /* RLS MERGE DELETE USING policy */
} WCOKind;
typedef struct WithCheckOption
@@ -1453,7 +1453,7 @@ typedef enum GroupingSetKind
GROUPING_SET_SIMPLE,
GROUPING_SET_ROLLUP,
GROUPING_SET_CUBE,
- GROUPING_SET_SETS
+ GROUPING_SET_SETS,
} GroupingSetKind;
typedef struct GroupingSet
@@ -1592,7 +1592,7 @@ typedef enum CTEMaterialize
{
CTEMaterializeDefault, /* no option specified */
CTEMaterializeAlways, /* MATERIALIZED */
- CTEMaterializeNever /* NOT MATERIALIZED */
+ CTEMaterializeNever, /* NOT MATERIALIZED */
} CTEMaterialize;
typedef struct CTESearchClause
@@ -1972,7 +1972,7 @@ typedef enum SetOperation
SETOP_NONE = 0,
SETOP_UNION,
SETOP_INTERSECT,
- SETOP_EXCEPT
+ SETOP_EXCEPT,
} SetOperation;
typedef struct SelectStmt
@@ -2168,7 +2168,7 @@ typedef enum ObjectType
OBJECT_TSTEMPLATE,
OBJECT_TYPE,
OBJECT_USER_MAPPING,
- OBJECT_VIEW
+ OBJECT_VIEW,
} ObjectType;
/* ----------------------
@@ -2191,7 +2191,7 @@ typedef struct CreateSchemaStmt
typedef enum DropBehavior
{
DROP_RESTRICT, /* drop fails if any dependent objects */
- DROP_CASCADE /* remove dependent objects too */
+ DROP_CASCADE, /* remove dependent objects too */
} DropBehavior;
/* ----------------------
@@ -2274,7 +2274,7 @@ typedef enum AlterTableType
AT_AddIdentity, /* ADD IDENTITY */
AT_SetIdentity, /* SET identity column options */
AT_DropIdentity, /* DROP IDENTITY */
- AT_ReAddStatistics /* internal to commands/tablecmds.c */
+ AT_ReAddStatistics, /* internal to commands/tablecmds.c */
} AlterTableType;
typedef struct ReplicaIdentityStmt
@@ -2346,7 +2346,7 @@ typedef enum GrantTargetType
{
ACL_TARGET_OBJECT, /* grant on specific named object(s) */
ACL_TARGET_ALL_IN_SCHEMA, /* grant on all objects in given schema(s) */
- ACL_TARGET_DEFAULTS /* ALTER DEFAULT PRIVILEGES */
+ ACL_TARGET_DEFAULTS, /* ALTER DEFAULT PRIVILEGES */
} GrantTargetType;
typedef struct GrantStmt
@@ -2473,7 +2473,7 @@ typedef enum VariableSetKind
VAR_SET_CURRENT, /* SET var FROM CURRENT */
VAR_SET_MULTI, /* special case for SET TRANSACTION ... */
VAR_RESET, /* RESET var */
- VAR_RESET_ALL /* RESET ALL */
+ VAR_RESET_ALL, /* RESET ALL */
} VariableSetKind;
typedef struct VariableSetStmt
@@ -2572,7 +2572,7 @@ typedef enum ConstrType /* types of constraints */
CONSTR_ATTR_DEFERRABLE, /* attributes for previous constraint node */
CONSTR_ATTR_NOT_DEFERRABLE,
CONSTR_ATTR_DEFERRED,
- CONSTR_ATTR_IMMEDIATE
+ CONSTR_ATTR_IMMEDIATE,
} ConstrType;
/* Foreign key action codes */
@@ -2812,7 +2812,7 @@ typedef enum ImportForeignSchemaType
{
FDW_IMPORT_SCHEMA_ALL, /* all relations wanted */
FDW_IMPORT_SCHEMA_LIMIT_TO, /* include only listed tables in import */
- FDW_IMPORT_SCHEMA_EXCEPT /* exclude listed tables from import */
+ FDW_IMPORT_SCHEMA_EXCEPT, /* exclude listed tables from import */
} ImportForeignSchemaType;
typedef struct ImportForeignSchemaStmt
@@ -2949,7 +2949,7 @@ typedef enum RoleStmtType
{
ROLESTMT_ROLE,
ROLESTMT_USER,
- ROLESTMT_GROUP
+ ROLESTMT_GROUP,
} RoleStmtType;
typedef struct CreateRoleStmt
@@ -3194,7 +3194,7 @@ typedef enum FetchDirection
FETCH_BACKWARD,
/* for these, howMany indicates a position; only one row is fetched */
FETCH_ABSOLUTE,
- FETCH_RELATIVE
+ FETCH_RELATIVE,
} FetchDirection;
#define FETCH_ALL LONG_MAX
@@ -3319,7 +3319,7 @@ typedef enum FunctionParameterMode
FUNC_PARAM_VARIADIC = 'v', /* variadic (always input) */
FUNC_PARAM_TABLE = 't', /* table function output column */
/* this is not used in pg_proc: */
- FUNC_PARAM_DEFAULT = 'd' /* default; effectively same as IN */
+ FUNC_PARAM_DEFAULT = 'd', /* default; effectively same as IN */
} FunctionParameterMode;
typedef struct FunctionParameter
@@ -3535,7 +3535,7 @@ typedef enum TransactionStmtKind
TRANS_STMT_ROLLBACK_TO,
TRANS_STMT_PREPARE,
TRANS_STMT_COMMIT_PREPARED,
- TRANS_STMT_ROLLBACK_PREPARED
+ TRANS_STMT_ROLLBACK_PREPARED,
} TransactionStmtKind;
typedef struct TransactionStmt
@@ -3608,7 +3608,7 @@ typedef enum ViewCheckOption
{
NO_CHECK_OPTION,
LOCAL_CHECK_OPTION,
- CASCADED_CHECK_OPTION
+ CASCADED_CHECK_OPTION,
} ViewCheckOption;
typedef struct ViewStmt
@@ -3800,7 +3800,7 @@ typedef enum DiscardMode
DISCARD_ALL,
DISCARD_PLANS,
DISCARD_SEQUENCES,
- DISCARD_TEMP
+ DISCARD_TEMP,
} DiscardMode;
typedef struct DiscardStmt
@@ -3842,7 +3842,7 @@ typedef enum ReindexObjectType
REINDEX_OBJECT_TABLE, /* table or materialized view */
REINDEX_OBJECT_SCHEMA, /* schema */
REINDEX_OBJECT_SYSTEM, /* system catalogs */
- REINDEX_OBJECT_DATABASE /* database */
+ REINDEX_OBJECT_DATABASE, /* database */
} ReindexObjectType;
typedef struct ReindexStmt
@@ -3977,7 +3977,7 @@ typedef enum AlterTSConfigType
ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN,
ALTER_TSCONFIG_REPLACE_DICT,
ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN,
- ALTER_TSCONFIG_DROP_MAPPING
+ ALTER_TSCONFIG_DROP_MAPPING,
} AlterTSConfigType;
typedef struct AlterTSConfigurationStmt
@@ -4014,7 +4014,7 @@ typedef enum PublicationObjSpecType
PUBLICATIONOBJ_TABLES_IN_SCHEMA, /* All tables in schema */
PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA, /* All tables in first element of
* search_path */
- PUBLICATIONOBJ_CONTINUATION /* Continuation of previous type */
+ PUBLICATIONOBJ_CONTINUATION, /* Continuation of previous type */
} PublicationObjSpecType;
typedef struct PublicationObjSpec
@@ -4039,7 +4039,7 @@ typedef enum AlterPublicationAction
{
AP_AddObjects, /* add objects to publication */
AP_DropObjects, /* remove objects from publication */
- AP_SetObjects /* set list of objects */
+ AP_SetObjects, /* set list of objects */
} AlterPublicationAction;
typedef struct AlterPublicationStmt
@@ -4078,7 +4078,7 @@ typedef enum AlterSubscriptionType
ALTER_SUBSCRIPTION_DROP_PUBLICATION,
ALTER_SUBSCRIPTION_REFRESH,
ALTER_SUBSCRIPTION_ENABLED,
- ALTER_SUBSCRIPTION_SKIP
+ ALTER_SUBSCRIPTION_SKIP,
} AlterSubscriptionType;
typedef struct AlterSubscriptionStmt
diff --git a/src/include/nodes/pathnodes.h b/src/include/nodes/pathnodes.h
index 2027265b315..86596f367b9 100644
--- a/src/include/nodes/pathnodes.h
+++ b/src/include/nodes/pathnodes.h
@@ -76,7 +76,7 @@ typedef enum UpperRelationKind
UPPERREL_PARTIAL_DISTINCT, /* result of partial "SELECT DISTINCT", if any */
UPPERREL_DISTINCT, /* result of "SELECT DISTINCT", if any */
UPPERREL_ORDERED, /* result of ORDER BY, if any */
- UPPERREL_FINAL /* result of any remaining top-level actions */
+ UPPERREL_FINAL, /* result of any remaining top-level actions */
/* NB: UPPERREL_FINAL must be last enum entry; it's used to size arrays */
} UpperRelationKind;
@@ -814,7 +814,7 @@ typedef enum RelOptKind
RELOPT_OTHER_MEMBER_REL,
RELOPT_OTHER_JOINREL,
RELOPT_UPPER_REL,
- RELOPT_OTHER_UPPER_REL
+ RELOPT_OTHER_UPPER_REL,
} RelOptKind;
/*
@@ -1465,7 +1465,7 @@ typedef enum VolatileFunctionStatus
{
VOLATILITY_UNKNOWN = 0,
VOLATILITY_VOLATILE,
- VOLATILITY_NOVOLATILE
+ VOLATILITY_NOVOLATILE,
} VolatileFunctionStatus;
/*
@@ -1987,7 +1987,7 @@ typedef enum UniquePathMethod
{
UNIQUE_PATH_NOOP, /* input is known unique already */
UNIQUE_PATH_HASH, /* use hashing */
- UNIQUE_PATH_SORT /* use sorting */
+ UNIQUE_PATH_SORT, /* use sorting */
} UniquePathMethod;
typedef struct UniquePath
@@ -3228,7 +3228,7 @@ typedef enum
{
PARTITIONWISE_AGGREGATE_NONE,
PARTITIONWISE_AGGREGATE_FULL,
- PARTITIONWISE_AGGREGATE_PARTIAL
+ PARTITIONWISE_AGGREGATE_PARTIAL,
} PartitionwiseAggregateType;
/*
diff --git a/src/include/nodes/plannodes.h b/src/include/nodes/plannodes.h
index d64fe6a328b..24d46c76dc2 100644
--- a/src/include/nodes/plannodes.h
+++ b/src/include/nodes/plannodes.h
@@ -591,7 +591,7 @@ typedef enum SubqueryScanStatus
{
SUBQUERY_SCAN_UNKNOWN,
SUBQUERY_SCAN_TRIVIAL,
- SUBQUERY_SCAN_NONTRIVIAL
+ SUBQUERY_SCAN_NONTRIVIAL,
} SubqueryScanStatus;
typedef struct SubqueryScan
@@ -1330,7 +1330,7 @@ typedef enum RowMarkType
ROW_MARK_SHARE, /* obtain shared tuple lock */
ROW_MARK_KEYSHARE, /* obtain keyshare tuple lock */
ROW_MARK_REFERENCE, /* just fetch the TID, don't lock it */
- ROW_MARK_COPY /* physically copy the row value */
+ ROW_MARK_COPY, /* physically copy the row value */
} RowMarkType;
#define RowMarkRequiresRowShareLock(marktype) ((marktype) <= ROW_MARK_KEYSHARE)
@@ -1542,7 +1542,7 @@ typedef struct PartitionPruneStepOp
typedef enum PartitionPruneCombineOp
{
PARTPRUNE_COMBINE_UNION,
- PARTPRUNE_COMBINE_INTERSECT
+ PARTPRUNE_COMBINE_INTERSECT,
} PartitionPruneCombineOp;
typedef struct PartitionPruneStepCombine
@@ -1586,7 +1586,7 @@ typedef enum MonotonicFunction
MONOTONICFUNC_NONE = 0,
MONOTONICFUNC_INCREASING = (1 << 0),
MONOTONICFUNC_DECREASING = (1 << 1),
- MONOTONICFUNC_BOTH = MONOTONICFUNC_INCREASING | MONOTONICFUNC_DECREASING
+ MONOTONICFUNC_BOTH = MONOTONICFUNC_INCREASING | MONOTONICFUNC_DECREASING,
} MonotonicFunction;
#endif /* PLANNODES_H */
diff --git a/src/include/nodes/primnodes.h b/src/include/nodes/primnodes.h
index 60d72a876b4..ab6d7fdc6df 100644
--- a/src/include/nodes/primnodes.h
+++ b/src/include/nodes/primnodes.h
@@ -49,7 +49,7 @@ typedef enum OnCommitAction
ONCOMMIT_NOOP, /* No ON COMMIT clause (do nothing) */
ONCOMMIT_PRESERVE_ROWS, /* ON COMMIT PRESERVE ROWS (do nothing) */
ONCOMMIT_DELETE_ROWS, /* ON COMMIT DELETE ROWS */
- ONCOMMIT_DROP /* ON COMMIT DROP */
+ ONCOMMIT_DROP, /* ON COMMIT DROP */
} OnCommitAction;
/*
@@ -345,7 +345,7 @@ typedef enum ParamKind
PARAM_EXTERN,
PARAM_EXEC,
PARAM_SUBLINK,
- PARAM_MULTIEXPR
+ PARAM_MULTIEXPR,
} ParamKind;
typedef struct Param
@@ -641,7 +641,7 @@ typedef enum CoercionContext
COERCION_IMPLICIT, /* coercion in context of expression */
COERCION_ASSIGNMENT, /* coercion in context of assignment */
COERCION_PLPGSQL, /* if no assignment cast, use CoerceViaIO */
- COERCION_EXPLICIT /* explicit cast operation */
+ COERCION_EXPLICIT, /* explicit cast operation */
} CoercionContext;
/*
@@ -661,7 +661,7 @@ typedef enum CoercionForm
COERCE_EXPLICIT_CALL, /* display as a function call */
COERCE_EXPLICIT_CAST, /* display as an explicit cast */
COERCE_IMPLICIT_CAST, /* implicit cast, so hide it */
- COERCE_SQL_SYNTAX /* display with SQL-mandated special syntax */
+ COERCE_SQL_SYNTAX, /* display with SQL-mandated special syntax */
} CoercionForm;
/*
@@ -928,7 +928,7 @@ typedef enum SubLinkType
EXPR_SUBLINK,
MULTIEXPR_SUBLINK,
ARRAY_SUBLINK,
- CTE_SUBLINK /* for SubPlans only */
+ CTE_SUBLINK, /* for SubPlans only */
} SubLinkType;
@@ -1384,7 +1384,7 @@ typedef enum RowCompareType
ROWCOMPARE_EQ = 3, /* BTEqualStrategyNumber */
ROWCOMPARE_GE = 4, /* BTGreaterEqualStrategyNumber */
ROWCOMPARE_GT = 5, /* BTGreaterStrategyNumber */
- ROWCOMPARE_NE = 6 /* no such btree strategy */
+ ROWCOMPARE_NE = 6, /* no such btree strategy */
} RowCompareType;
typedef struct RowCompareExpr
@@ -1474,7 +1474,7 @@ typedef enum SQLValueFunctionOp
SVFOP_USER,
SVFOP_SESSION_USER,
SVFOP_CURRENT_CATALOG,
- SVFOP_CURRENT_SCHEMA
+ SVFOP_CURRENT_SCHEMA,
} SQLValueFunctionOp;
typedef struct SQLValueFunction
@@ -1511,13 +1511,13 @@ typedef enum XmlExprOp
IS_XMLPI, /* XMLPI(name [, args]) */
IS_XMLROOT, /* XMLROOT(xml, version, standalone) */
IS_XMLSERIALIZE, /* XMLSERIALIZE(is_document, xmlval, indent) */
- IS_DOCUMENT /* xmlval IS DOCUMENT */
+ IS_DOCUMENT, /* xmlval IS DOCUMENT */
} XmlExprOp;
typedef enum XmlOptionType
{
XMLOPTION_DOCUMENT,
- XMLOPTION_CONTENT
+ XMLOPTION_CONTENT,
} XmlOptionType;
typedef struct XmlExpr
@@ -1564,7 +1564,7 @@ typedef enum JsonFormatType
{
JS_FORMAT_DEFAULT, /* unspecified */
JS_FORMAT_JSON, /* FORMAT JSON [ENCODING ...] */
- JS_FORMAT_JSONB /* implicit internal format for RETURNING
+ JS_FORMAT_JSONB, /* implicit internal format for RETURNING
* jsonb */
} JsonFormatType;
@@ -1616,7 +1616,7 @@ typedef enum JsonConstructorType
JSCTOR_JSON_ARRAYAGG = 4,
JSCTOR_JSON_PARSE = 5,
JSCTOR_JSON_SCALAR = 6,
- JSCTOR_JSON_SERIALIZE = 7
+ JSCTOR_JSON_SERIALIZE = 7,
} JsonConstructorType;
/*
@@ -1645,7 +1645,7 @@ typedef enum JsonValueType
JS_TYPE_ANY, /* IS JSON [VALUE] */
JS_TYPE_OBJECT, /* IS JSON OBJECT */
JS_TYPE_ARRAY, /* IS JSON ARRAY */
- JS_TYPE_SCALAR /* IS JSON SCALAR */
+ JS_TYPE_SCALAR, /* IS JSON SCALAR */
} JsonValueType;
/*
diff --git a/src/include/nodes/queryjumble.h b/src/include/nodes/queryjumble.h
index 7649e095aa5..0769081c7ab 100644
--- a/src/include/nodes/queryjumble.h
+++ b/src/include/nodes/queryjumble.h
@@ -56,7 +56,7 @@ enum ComputeQueryIdType
COMPUTE_QUERY_ID_OFF,
COMPUTE_QUERY_ID_ON,
COMPUTE_QUERY_ID_AUTO,
- COMPUTE_QUERY_ID_REGRESS
+ COMPUTE_QUERY_ID_REGRESS,
};
/* GUC parameters */
diff --git a/src/include/nodes/replnodes.h b/src/include/nodes/replnodes.h
index 4321ba8f866..5142a087291 100644
--- a/src/include/nodes/replnodes.h
+++ b/src/include/nodes/replnodes.h
@@ -20,7 +20,7 @@
typedef enum ReplicationKind
{
REPLICATION_KIND_PHYSICAL,
- REPLICATION_KIND_LOGICAL
+ REPLICATION_KIND_LOGICAL,
} ReplicationKind;
diff --git a/src/include/optimizer/cost.h b/src/include/optimizer/cost.h
index bee090ffc2e..6d50afbf74c 100644
--- a/src/include/optimizer/cost.h
+++ b/src/include/optimizer/cost.h
@@ -37,7 +37,7 @@ typedef enum
{
CONSTRAINT_EXCLUSION_OFF, /* do not use c_e */
CONSTRAINT_EXCLUSION_ON, /* apply c_e to all rels */
- CONSTRAINT_EXCLUSION_PARTITION /* apply c_e to otherrels only */
+ CONSTRAINT_EXCLUSION_PARTITION, /* apply c_e to otherrels only */
} ConstraintExclusionType;
diff --git a/src/include/optimizer/optimizer.h b/src/include/optimizer/optimizer.h
index 514746c5852..11fd5013c74 100644
--- a/src/include/optimizer/optimizer.h
+++ b/src/include/optimizer/optimizer.h
@@ -104,7 +104,7 @@ typedef enum
{
DEBUG_PARALLEL_OFF,
DEBUG_PARALLEL_ON,
- DEBUG_PARALLEL_REGRESS
+ DEBUG_PARALLEL_REGRESS,
} DebugParallelMode;
/* GUC parameters */
diff --git a/src/include/optimizer/paths.h b/src/include/optimizer/paths.h
index 2d8dbba7cd3..9e7408c7ecf 100644
--- a/src/include/optimizer/paths.h
+++ b/src/include/optimizer/paths.h
@@ -198,7 +198,7 @@ typedef enum
PATHKEYS_EQUAL, /* pathkeys are identical */
PATHKEYS_BETTER1, /* pathkey 1 is a superset of pathkey 2 */
PATHKEYS_BETTER2, /* vice versa */
- PATHKEYS_DIFFERENT /* neither pathkey includes the other */
+ PATHKEYS_DIFFERENT, /* neither pathkey includes the other */
} PathKeysComparison;
extern PathKeysComparison compare_pathkeys(List *keys1, List *keys2);
diff --git a/src/include/parser/parse_coerce.h b/src/include/parser/parse_coerce.h
index 35ce4a3547a..d01e2c55195 100644
--- a/src/include/parser/parse_coerce.h
+++ b/src/include/parser/parse_coerce.h
@@ -27,7 +27,7 @@ typedef enum CoercionPathType
COERCION_PATH_FUNC, /* apply the specified coercion function */
COERCION_PATH_RELABELTYPE, /* binary-compatible cast, no function */
COERCION_PATH_ARRAYCOERCE, /* need an ArrayCoerceExpr node */
- COERCION_PATH_COERCEVIAIO /* need a CoerceViaIO node */
+ COERCION_PATH_COERCEVIAIO, /* need a CoerceViaIO node */
} CoercionPathType;
diff --git a/src/include/parser/parse_func.h b/src/include/parser/parse_func.h
index e316f5da498..7e0d8235997 100644
--- a/src/include/parser/parse_func.h
+++ b/src/include/parser/parse_func.h
@@ -27,7 +27,7 @@ typedef enum
FUNCDETAIL_PROCEDURE, /* found a matching procedure */
FUNCDETAIL_AGGREGATE, /* found a matching aggregate function */
FUNCDETAIL_WINDOWFUNC, /* found a matching window function */
- FUNCDETAIL_COERCION /* it's a type coercion request */
+ FUNCDETAIL_COERCION, /* it's a type coercion request */
} FuncDetailCode;
diff --git a/src/include/parser/parser.h b/src/include/parser/parser.h
index 8d90064d87b..1e160c652dc 100644
--- a/src/include/parser/parser.h
+++ b/src/include/parser/parser.h
@@ -41,7 +41,7 @@ typedef enum
RAW_PARSE_PLPGSQL_EXPR,
RAW_PARSE_PLPGSQL_ASSIGN1,
RAW_PARSE_PLPGSQL_ASSIGN2,
- RAW_PARSE_PLPGSQL_ASSIGN3
+ RAW_PARSE_PLPGSQL_ASSIGN3,
} RawParseMode;
/* Values for the backslash_quote GUC */
@@ -49,7 +49,7 @@ typedef enum
{
BACKSLASH_QUOTE_OFF,
BACKSLASH_QUOTE_ON,
- BACKSLASH_QUOTE_SAFE_ENCODING
+ BACKSLASH_QUOTE_SAFE_ENCODING,
} BackslashQuoteType;
/* GUC variables in scan.l (every one of these is a bad idea :-() */
diff --git a/src/include/pgstat.h b/src/include/pgstat.h
index 57a2c0866a2..fe2642f71a4 100644
--- a/src/include/pgstat.h
+++ b/src/include/pgstat.h
@@ -62,7 +62,7 @@ typedef enum TrackFunctionsLevel
{
TRACK_FUNC_OFF,
TRACK_FUNC_PL,
- TRACK_FUNC_ALL
+ TRACK_FUNC_ALL,
} TrackFunctionsLevel;
typedef enum PgStat_FetchConsistency
@@ -79,7 +79,7 @@ typedef enum SessionEndType
DISCONNECT_NORMAL,
DISCONNECT_CLIENT_EOF,
DISCONNECT_FATAL,
- DISCONNECT_KILLED
+ DISCONNECT_KILLED,
} SessionEndType;
/* ----------
diff --git a/src/include/pgtar.h b/src/include/pgtar.h
index 8abfb9c19c3..b52691707a0 100644
--- a/src/include/pgtar.h
+++ b/src/include/pgtar.h
@@ -20,7 +20,7 @@ enum tarError
{
TAR_OK = 0,
TAR_NAME_TOO_LONG,
- TAR_SYMLINK_TOO_LONG
+ TAR_SYMLINK_TOO_LONG,
};
/*
@@ -51,7 +51,7 @@ enum tarHeaderOffset
TAR_OFFSET_GNAME = 297, /* 32 byte string */
TAR_OFFSET_DEVMAJOR = 329, /* 8 byte tar number */
TAR_OFFSET_DEVMINOR = 337, /* 8 byte tar number */
- TAR_OFFSET_PREFIX = 345 /* 155 byte string */
+ TAR_OFFSET_PREFIX = 345, /* 155 byte string */
/* last 12 bytes of the 512-byte block are unassigned */
};
@@ -59,7 +59,7 @@ enum tarFileType
{
TAR_FILETYPE_PLAIN = '0',
TAR_FILETYPE_SYMLINK = '2',
- TAR_FILETYPE_DIRECTORY = '5'
+ TAR_FILETYPE_DIRECTORY = '5',
};
extern enum tarError tarCreateHeader(char *h, const char *filename,
diff --git a/src/include/postmaster/autovacuum.h b/src/include/postmaster/autovacuum.h
index 65afd1ea1e8..b553e858ad4 100644
--- a/src/include/postmaster/autovacuum.h
+++ b/src/include/postmaster/autovacuum.h
@@ -22,7 +22,7 @@
*/
typedef enum
{
- AVW_BRINSummarizeRange
+ AVW_BRINSummarizeRange,
} AutoVacuumWorkItemType;
diff --git a/src/include/postmaster/bgworker.h b/src/include/postmaster/bgworker.h
index d7a5c1a9465..e90ff376a6a 100644
--- a/src/include/postmaster/bgworker.h
+++ b/src/include/postmaster/bgworker.h
@@ -78,7 +78,7 @@ typedef enum
{
BgWorkerStart_PostmasterStart,
BgWorkerStart_ConsistentState,
- BgWorkerStart_RecoveryFinished
+ BgWorkerStart_RecoveryFinished,
} BgWorkerStartTime;
#define BGW_DEFAULT_RESTART_INTERVAL 60
@@ -105,7 +105,7 @@ typedef enum BgwHandleStatus
BGWH_STARTED, /* worker is running */
BGWH_NOT_YET_STARTED, /* worker hasn't been started yet */
BGWH_STOPPED, /* worker has exited */
- BGWH_POSTMASTER_DIED /* postmaster died; worker status unclear */
+ BGWH_POSTMASTER_DIED, /* postmaster died; worker status unclear */
} BgwHandleStatus;
struct BackgroundWorkerHandle;
diff --git a/src/include/replication/logicalproto.h b/src/include/replication/logicalproto.h
index c5be981eae6..4bb04c4eac8 100644
--- a/src/include/replication/logicalproto.h
+++ b/src/include/replication/logicalproto.h
@@ -74,7 +74,7 @@ typedef enum LogicalRepMsgType
LOGICAL_REP_MSG_STREAM_STOP = 'E',
LOGICAL_REP_MSG_STREAM_COMMIT = 'c',
LOGICAL_REP_MSG_STREAM_ABORT = 'A',
- LOGICAL_REP_MSG_STREAM_PREPARE = 'p'
+ LOGICAL_REP_MSG_STREAM_PREPARE = 'p',
} LogicalRepMsgType;
/*
diff --git a/src/include/replication/output_plugin.h b/src/include/replication/output_plugin.h
index 3ac67293861..2ffcf17505f 100644
--- a/src/include/replication/output_plugin.h
+++ b/src/include/replication/output_plugin.h
@@ -17,7 +17,7 @@ struct OutputPluginCallbacks;
typedef enum OutputPluginOutputType
{
OUTPUT_PLUGIN_BINARY_OUTPUT,
- OUTPUT_PLUGIN_TEXTUAL_OUTPUT
+ OUTPUT_PLUGIN_TEXTUAL_OUTPUT,
} OutputPluginOutputType;
/*
diff --git a/src/include/replication/reorderbuffer.h b/src/include/replication/reorderbuffer.h
index 3cb03168de2..f986101e50d 100644
--- a/src/include/replication/reorderbuffer.h
+++ b/src/include/replication/reorderbuffer.h
@@ -25,7 +25,7 @@ extern PGDLLIMPORT int debug_logical_replication_streaming;
typedef enum
{
DEBUG_LOGICAL_REP_STREAMING_BUFFERED,
- DEBUG_LOGICAL_REP_STREAMING_IMMEDIATE
+ DEBUG_LOGICAL_REP_STREAMING_IMMEDIATE,
} DebugLogicalRepStreamingMode;
/* an individual tuple, stored in one chunk of memory */
@@ -73,7 +73,7 @@ typedef enum ReorderBufferChangeType
REORDER_BUFFER_CHANGE_INTERNAL_SPEC_INSERT,
REORDER_BUFFER_CHANGE_INTERNAL_SPEC_CONFIRM,
REORDER_BUFFER_CHANGE_INTERNAL_SPEC_ABORT,
- REORDER_BUFFER_CHANGE_TRUNCATE
+ REORDER_BUFFER_CHANGE_TRUNCATE,
} ReorderBufferChangeType;
/* forward declaration */
diff --git a/src/include/replication/slot.h b/src/include/replication/slot.h
index 758ca79a819..d3535eed583 100644
--- a/src/include/replication/slot.h
+++ b/src/include/replication/slot.h
@@ -34,7 +34,7 @@ typedef enum ReplicationSlotPersistency
{
RS_PERSISTENT,
RS_EPHEMERAL,
- RS_TEMPORARY
+ RS_TEMPORARY,
} ReplicationSlotPersistency;
/*
diff --git a/src/include/replication/snapbuild.h b/src/include/replication/snapbuild.h
index f49b941b53e..63f50a13d6f 100644
--- a/src/include/replication/snapbuild.h
+++ b/src/include/replication/snapbuild.h
@@ -43,7 +43,7 @@ typedef enum
* were running at that point finished. Till we reach that we hold off
* calling any commit callbacks.
*/
- SNAPBUILD_CONSISTENT = 2
+ SNAPBUILD_CONSISTENT = 2,
} SnapBuildState;
/* forward declare so we don't have to expose the struct to the public */
diff --git a/src/include/replication/walreceiver.h b/src/include/replication/walreceiver.h
index 281626fa6f5..04b439dc503 100644
--- a/src/include/replication/walreceiver.h
+++ b/src/include/replication/walreceiver.h
@@ -52,7 +52,7 @@ typedef enum
WALRCV_STREAMING, /* walreceiver is streaming */
WALRCV_WAITING, /* stopped streaming, waiting for orders */
WALRCV_RESTARTING, /* asked to restart streaming */
- WALRCV_STOPPING /* requested to stop, but still running */
+ WALRCV_STOPPING, /* requested to stop, but still running */
} WalRcvState;
/* Shared memory area for management of walreceiver process */
@@ -207,7 +207,7 @@ typedef enum
WALRCV_OK_TUPLES, /* Query returned tuples. */
WALRCV_OK_COPY_IN, /* Query started COPY FROM. */
WALRCV_OK_COPY_OUT, /* Query started COPY TO. */
- WALRCV_OK_COPY_BOTH /* Query started COPY BOTH replication
+ WALRCV_OK_COPY_BOTH, /* Query started COPY BOTH replication
* protocol. */
} WalRcvExecStatus;
diff --git a/src/include/replication/walsender.h b/src/include/replication/walsender.h
index 9df7e50f943..268f8e8d0fc 100644
--- a/src/include/replication/walsender.h
+++ b/src/include/replication/walsender.h
@@ -21,7 +21,7 @@ typedef enum
{
CRS_EXPORT_SNAPSHOT,
CRS_NOEXPORT_SNAPSHOT,
- CRS_USE_SNAPSHOT
+ CRS_USE_SNAPSHOT,
} CRSSnapshotAction;
/* global state */
diff --git a/src/include/replication/walsender_private.h b/src/include/replication/walsender_private.h
index 7d919583bd3..13fd5877a66 100644
--- a/src/include/replication/walsender_private.h
+++ b/src/include/replication/walsender_private.h
@@ -28,7 +28,7 @@ typedef enum WalSndState
WALSNDSTATE_BACKUP,
WALSNDSTATE_CATCHUP,
WALSNDSTATE_STREAMING,
- WALSNDSTATE_STOPPING
+ WALSNDSTATE_STOPPING,
} WalSndState;
/*
diff --git a/src/include/replication/worker_internal.h b/src/include/replication/worker_internal.h
index 8f4bed09585..47854b5cd45 100644
--- a/src/include/replication/worker_internal.h
+++ b/src/include/replication/worker_internal.h
@@ -33,7 +33,7 @@ typedef enum LogicalRepWorkerType
WORKERTYPE_UNKNOWN = 0,
WORKERTYPE_TABLESYNC,
WORKERTYPE_APPLY,
- WORKERTYPE_PARALLEL_APPLY
+ WORKERTYPE_PARALLEL_APPLY,
} LogicalRepWorkerType;
typedef struct LogicalRepWorker
@@ -106,7 +106,7 @@ typedef enum ParallelTransState
{
PARALLEL_TRANS_UNKNOWN,
PARALLEL_TRANS_STARTED,
- PARALLEL_TRANS_FINISHED
+ PARALLEL_TRANS_FINISHED,
} ParallelTransState;
/*
@@ -130,7 +130,7 @@ typedef enum PartialFileSetState
FS_EMPTY,
FS_SERIALIZE_IN_PROGRESS,
FS_SERIALIZE_DONE,
- FS_READY
+ FS_READY,
} PartialFileSetState;
/*
diff --git a/src/include/rewrite/rewriteManip.h b/src/include/rewrite/rewriteManip.h
index 365061fff44..ca12780bc78 100644
--- a/src/include/rewrite/rewriteManip.h
+++ b/src/include/rewrite/rewriteManip.h
@@ -37,7 +37,7 @@ typedef enum ReplaceVarsNoMatchOption
{
REPLACEVARS_REPORT_ERROR, /* throw error if no match */
REPLACEVARS_CHANGE_VARNO, /* change the Var's varno, nothing else */
- REPLACEVARS_SUBSTITUTE_NULL /* replace with a NULL Const */
+ REPLACEVARS_SUBSTITUTE_NULL, /* replace with a NULL Const */
} ReplaceVarsNoMatchOption;
diff --git a/src/include/storage/bufmgr.h b/src/include/storage/bufmgr.h
index 9241f868611..2eda466d44e 100644
--- a/src/include/storage/bufmgr.h
+++ b/src/include/storage/bufmgr.h
@@ -35,7 +35,7 @@ typedef enum BufferAccessStrategyType
BAS_BULKREAD, /* Large read-only scan (hint bit updates are
* ok) */
BAS_BULKWRITE, /* Large multi-block write (e.g. COPY IN) */
- BAS_VACUUM /* VACUUM */
+ BAS_VACUUM, /* VACUUM */
} BufferAccessStrategyType;
/* Possible modes for ReadBufferExtended() */
@@ -47,7 +47,7 @@ typedef enum
RBM_ZERO_AND_CLEANUP_LOCK, /* Like RBM_ZERO_AND_LOCK, but locks the page
* in "cleanup" mode */
RBM_ZERO_ON_ERROR, /* Read, but return an all-zeros page on error */
- RBM_NORMAL_NO_LOG /* Don't log page as invalid during WAL
+ RBM_NORMAL_NO_LOG, /* Don't log page as invalid during WAL
* replay; otherwise same as RBM_NORMAL */
} ReadBufferMode;
diff --git a/src/include/storage/dsm_impl.h b/src/include/storage/dsm_impl.h
index daf07bd19cd..56dbbe979e8 100644
--- a/src/include/storage/dsm_impl.h
+++ b/src/include/storage/dsm_impl.h
@@ -63,7 +63,7 @@ typedef enum
DSM_OP_CREATE,
DSM_OP_ATTACH,
DSM_OP_DETACH,
- DSM_OP_DESTROY
+ DSM_OP_DESTROY,
} dsm_op;
/* Create, attach to, detach from, resize, or destroy a segment. */
diff --git a/src/include/storage/lmgr.h b/src/include/storage/lmgr.h
index 952ebe75cb4..39f0e346b09 100644
--- a/src/include/storage/lmgr.h
+++ b/src/include/storage/lmgr.h
@@ -31,7 +31,7 @@ typedef enum XLTW_Oper
XLTW_InsertIndex,
XLTW_InsertIndexUnique,
XLTW_FetchUpdated,
- XLTW_RecheckExclusionConstr
+ XLTW_RecheckExclusionConstr,
} XLTW_Oper;
extern void RelationInitLockInfo(Relation relation);
diff --git a/src/include/storage/lock.h b/src/include/storage/lock.h
index 8575bea25c7..590c026b5bf 100644
--- a/src/include/storage/lock.h
+++ b/src/include/storage/lock.h
@@ -145,7 +145,7 @@ typedef enum LockTagType
LOCKTAG_OBJECT, /* non-relation database object */
LOCKTAG_USERLOCK, /* reserved for old contrib/userlock code */
LOCKTAG_ADVISORY, /* advisory user locks */
- LOCKTAG_APPLY_TRANSACTION /* transaction being applied on a logical
+ LOCKTAG_APPLY_TRANSACTION, /* transaction being applied on a logical
* replication subscriber */
} LockTagType;
@@ -502,7 +502,7 @@ typedef enum
LOCKACQUIRE_NOT_AVAIL, /* lock not available, and dontWait=true */
LOCKACQUIRE_OK, /* lock successfully acquired */
LOCKACQUIRE_ALREADY_HELD, /* incremented count for lock already held */
- LOCKACQUIRE_ALREADY_CLEAR /* incremented count for lock already clear */
+ LOCKACQUIRE_ALREADY_CLEAR, /* incremented count for lock already clear */
} LockAcquireResult;
/* Deadlock states identified by DeadLockCheck() */
@@ -512,7 +512,7 @@ typedef enum
DS_NO_DEADLOCK, /* no deadlock detected */
DS_SOFT_DEADLOCK, /* deadlock avoided by queue rearrangement */
DS_HARD_DEADLOCK, /* deadlock, no way out but ERROR */
- DS_BLOCKED_BY_AUTOVACUUM /* no deadlock; queue blocked by autovacuum
+ DS_BLOCKED_BY_AUTOVACUUM, /* no deadlock; queue blocked by autovacuum
* worker */
} DeadLockState;
diff --git a/src/include/storage/lwlock.h b/src/include/storage/lwlock.h
index d77410bdea7..b038e599c0b 100644
--- a/src/include/storage/lwlock.h
+++ b/src/include/storage/lwlock.h
@@ -115,7 +115,7 @@ typedef enum LWLockMode
{
LW_EXCLUSIVE,
LW_SHARED,
- LW_WAIT_UNTIL_FREE /* A special mode used in PGPROC->lwWaitMode,
+ LW_WAIT_UNTIL_FREE, /* A special mode used in PGPROC->lwWaitMode,
* when waiting for lock to become free. Not
* to be used as LWLockAcquire argument */
} LWLockMode;
@@ -207,7 +207,7 @@ typedef enum BuiltinTrancheIds
LWTRANCHE_PGSTATS_DATA,
LWTRANCHE_LAUNCHER_DSA,
LWTRANCHE_LAUNCHER_HASH,
- LWTRANCHE_FIRST_USER_DEFINED
+ LWTRANCHE_FIRST_USER_DEFINED,
} BuiltinTrancheIds;
/*
diff --git a/src/include/storage/pg_shmem.h b/src/include/storage/pg_shmem.h
index ba0cdc13c77..aea769920cc 100644
--- a/src/include/storage/pg_shmem.h
+++ b/src/include/storage/pg_shmem.h
@@ -52,7 +52,7 @@ typedef enum
HUGE_PAGES_OFF,
HUGE_PAGES_ON,
HUGE_PAGES_TRY, /* only for huge_pages */
- HUGE_PAGES_UNKNOWN /* only for huge_pages_status */
+ HUGE_PAGES_UNKNOWN, /* only for huge_pages_status */
} HugePagesType;
/* Possible values for shared_memory_type */
@@ -60,7 +60,7 @@ typedef enum
{
SHMEM_TYPE_WINDOWS,
SHMEM_TYPE_SYSV,
- SHMEM_TYPE_MMAP
+ SHMEM_TYPE_MMAP,
} PGShmemType;
#ifndef WIN32
diff --git a/src/include/storage/pmsignal.h b/src/include/storage/pmsignal.h
index 92dc7646671..5e71ac17094 100644
--- a/src/include/storage/pmsignal.h
+++ b/src/include/storage/pmsignal.h
@@ -51,7 +51,7 @@ typedef enum
{
PMQUIT_NOT_SENT = 0, /* postmaster hasn't sent SIGQUIT */
PMQUIT_FOR_CRASH, /* some other backend bought the farm */
- PMQUIT_FOR_STOP /* immediate stop was commanded */
+ PMQUIT_FOR_STOP, /* immediate stop was commanded */
} QuitSignalReason;
/* PMSignalData is an opaque struct, details known only within pmsignal.c */
diff --git a/src/include/storage/predicate_internals.h b/src/include/storage/predicate_internals.h
index 93f84500bf0..6a917fe32ed 100644
--- a/src/include/storage/predicate_internals.h
+++ b/src/include/storage/predicate_internals.h
@@ -362,7 +362,7 @@ typedef enum PredicateLockTargetType
{
PREDLOCKTAG_RELATION,
PREDLOCKTAG_PAGE,
- PREDLOCKTAG_TUPLE
+ PREDLOCKTAG_TUPLE,
/* TODO SSI: Other types may be needed for index locking */
} PredicateLockTargetType;
@@ -424,7 +424,7 @@ typedef struct PredicateLockData
typedef enum TwoPhasePredicateRecordType
{
TWOPHASEPREDICATERECORD_XACT,
- TWOPHASEPREDICATERECORD_LOCK
+ TWOPHASEPREDICATERECORD_LOCK,
} TwoPhasePredicateRecordType;
/*
diff --git a/src/include/storage/procsignal.h b/src/include/storage/procsignal.h
index 3a3a7eca77d..548519117a9 100644
--- a/src/include/storage/procsignal.h
+++ b/src/include/storage/procsignal.h
@@ -53,7 +53,7 @@ typedef enum
typedef enum
{
- PROCSIGNAL_BARRIER_SMGRRELEASE /* ask smgr to close files */
+ PROCSIGNAL_BARRIER_SMGRRELEASE, /* ask smgr to close files */
} ProcSignalBarrierType;
/*
diff --git a/src/include/storage/shm_mq.h b/src/include/storage/shm_mq.h
index 2e04e418378..3145e9292d3 100644
--- a/src/include/storage/shm_mq.h
+++ b/src/include/storage/shm_mq.h
@@ -37,7 +37,7 @@ typedef enum
{
SHM_MQ_SUCCESS, /* Sent or received a message. */
SHM_MQ_WOULD_BLOCK, /* Not completed; retry later. */
- SHM_MQ_DETACHED /* Other process has detached queue. */
+ SHM_MQ_DETACHED, /* Other process has detached queue. */
} shm_mq_result;
/*
diff --git a/src/include/storage/sync.h b/src/include/storage/sync.h
index cfbcfa6797d..963cc82125a 100644
--- a/src/include/storage/sync.h
+++ b/src/include/storage/sync.h
@@ -25,7 +25,7 @@ typedef enum SyncRequestType
SYNC_REQUEST, /* schedule a call of sync function */
SYNC_UNLINK_REQUEST, /* schedule a call of unlink function */
SYNC_FORGET_REQUEST, /* forget all calls for a tag */
- SYNC_FILTER_REQUEST /* forget all calls satisfying match fn */
+ SYNC_FILTER_REQUEST, /* forget all calls satisfying match fn */
} SyncRequestType;
/*
@@ -39,7 +39,7 @@ typedef enum SyncRequestHandler
SYNC_HANDLER_COMMIT_TS,
SYNC_HANDLER_MULTIXACT_OFFSET,
SYNC_HANDLER_MULTIXACT_MEMBER,
- SYNC_HANDLER_NONE
+ SYNC_HANDLER_NONE,
} SyncRequestHandler;
/*
diff --git a/src/include/tcop/deparse_utility.h b/src/include/tcop/deparse_utility.h
index b585810b9a6..4bd322e4f93 100644
--- a/src/include/tcop/deparse_utility.h
+++ b/src/include/tcop/deparse_utility.h
@@ -29,7 +29,7 @@ typedef enum CollectedCommandType
SCT_AlterOpFamily,
SCT_AlterDefaultPrivileges,
SCT_CreateOpClass,
- SCT_AlterTSConfig
+ SCT_AlterTSConfig,
} CollectedCommandType;
/*
diff --git a/src/include/tcop/dest.h b/src/include/tcop/dest.h
index a7d86e7abd4..e18d9bf49b6 100644
--- a/src/include/tcop/dest.h
+++ b/src/include/tcop/dest.h
@@ -95,7 +95,7 @@ typedef enum
DestCopyOut, /* results sent to COPY TO code */
DestSQLFunction, /* results sent to SQL-language func mgr */
DestTransientRel, /* results sent to transient relation */
- DestTupleQueue /* results sent to tuple queue */
+ DestTupleQueue, /* results sent to tuple queue */
} CommandDest;
/* ----------------
diff --git a/src/include/tcop/tcopprot.h b/src/include/tcop/tcopprot.h
index ab43b638eea..6c49db3bb7f 100644
--- a/src/include/tcop/tcopprot.h
+++ b/src/include/tcop/tcopprot.h
@@ -38,7 +38,7 @@ typedef enum
LOGSTMT_NONE, /* log no statements */
LOGSTMT_DDL, /* log data definition statements */
LOGSTMT_MOD, /* log modification statements, plus DDL */
- LOGSTMT_ALL /* log all statements */
+ LOGSTMT_ALL, /* log all statements */
} LogStmtLevel;
extern PGDLLIMPORT int log_statement;
diff --git a/src/include/tcop/utility.h b/src/include/tcop/utility.h
index 59e64aea073..05ef9baec8d 100644
--- a/src/include/tcop/utility.h
+++ b/src/include/tcop/utility.h
@@ -23,7 +23,7 @@ typedef enum
PROCESS_UTILITY_QUERY, /* a complete query, but not toplevel */
PROCESS_UTILITY_QUERY_NONATOMIC, /* a complete query, nonatomic
* execution context */
- PROCESS_UTILITY_SUBCOMMAND /* a portion of a query */
+ PROCESS_UTILITY_SUBCOMMAND, /* a portion of a query */
} ProcessUtilityContext;
/* Info needed when recursing from ALTER TABLE */
diff --git a/src/include/tsearch/dicts/spell.h b/src/include/tsearch/dicts/spell.h
index 0763f9ffe7b..99846316899 100644
--- a/src/include/tsearch/dicts/spell.h
+++ b/src/include/tsearch/dicts/spell.h
@@ -158,7 +158,7 @@ typedef enum
{
FM_CHAR, /* one character (like ispell) */
FM_LONG, /* two characters */
- FM_NUM /* number, >= 0 and < 65536 */
+ FM_NUM, /* number, >= 0 and < 65536 */
} FlagMode;
/*
diff --git a/src/include/tsearch/ts_utils.h b/src/include/tsearch/ts_utils.h
index d2aae0c3372..082a6fc9764 100644
--- a/src/include/tsearch/ts_utils.h
+++ b/src/include/tsearch/ts_utils.h
@@ -133,7 +133,7 @@ typedef enum
{
TS_NO, /* definitely no match */
TS_YES, /* definitely does match */
- TS_MAYBE /* can't verify match for lack of pos data */
+ TS_MAYBE, /* can't verify match for lack of pos data */
} TSTernaryValue;
/*
diff --git a/src/include/utils/acl.h b/src/include/utils/acl.h
index 02bc4d08d6c..17f5bfcb5d9 100644
--- a/src/include/utils/acl.h
+++ b/src/include/utils/acl.h
@@ -173,7 +173,7 @@ typedef struct ArrayType Acl;
typedef enum
{
ACLMASK_ALL, /* normal case: compute all bits */
- ACLMASK_ANY /* return when result is known nonzero */
+ ACLMASK_ANY, /* return when result is known nonzero */
} AclMaskHow;
/* result codes for pg_*_aclcheck */
@@ -181,7 +181,7 @@ typedef enum
{
ACLCHECK_OK = 0,
ACLCHECK_NO_PRIV,
- ACLCHECK_NOT_OWNER
+ ACLCHECK_NOT_OWNER,
} AclResult;
diff --git a/src/include/utils/backend_progress.h b/src/include/utils/backend_progress.h
index 70dea55fc00..3740523b5c5 100644
--- a/src/include/utils/backend_progress.h
+++ b/src/include/utils/backend_progress.h
@@ -27,7 +27,7 @@ typedef enum ProgressCommandType
PROGRESS_COMMAND_CLUSTER,
PROGRESS_COMMAND_CREATE_INDEX,
PROGRESS_COMMAND_BASEBACKUP,
- PROGRESS_COMMAND_COPY
+ PROGRESS_COMMAND_COPY,
} ProgressCommandType;
#define PGSTAT_NUM_PROGRESS_PARAM 20
diff --git a/src/include/utils/backend_status.h b/src/include/utils/backend_status.h
index d51c840dafb..75fc18c4327 100644
--- a/src/include/utils/backend_status.h
+++ b/src/include/utils/backend_status.h
@@ -29,7 +29,7 @@ typedef enum BackendState
STATE_IDLEINTRANSACTION,
STATE_FASTPATH,
STATE_IDLEINTRANSACTION_ABORTED,
- STATE_DISABLED
+ STATE_DISABLED,
} BackendState;
diff --git a/src/include/utils/bytea.h b/src/include/utils/bytea.h
index 166dd0366e6..58f69f0538a 100644
--- a/src/include/utils/bytea.h
+++ b/src/include/utils/bytea.h
@@ -19,7 +19,7 @@
typedef enum
{
BYTEA_OUTPUT_ESCAPE,
- BYTEA_OUTPUT_HEX
+ BYTEA_OUTPUT_HEX,
} ByteaOutputType;
extern PGDLLIMPORT int bytea_output; /* ByteaOutputType, but int for GUC
diff --git a/src/include/utils/elog.h b/src/include/utils/elog.h
index 0292e88b4f2..0971d5ce334 100644
--- a/src/include/utils/elog.h
+++ b/src/include/utils/elog.h
@@ -492,7 +492,7 @@ typedef enum
{
PGERROR_TERSE, /* single-line error messages */
PGERROR_DEFAULT, /* recommended style */
- PGERROR_VERBOSE /* all the facts, ma'am */
+ PGERROR_VERBOSE, /* all the facts, ma'am */
} PGErrorVerbosity;
extern PGDLLIMPORT int Log_error_verbosity;
diff --git a/src/include/utils/guc.h b/src/include/utils/guc.h
index 902e57c0ca3..20fe13702b1 100644
--- a/src/include/utils/guc.h
+++ b/src/include/utils/guc.h
@@ -72,7 +72,7 @@ typedef enum
PGC_SU_BACKEND,
PGC_BACKEND,
PGC_SUSET,
- PGC_USERSET
+ PGC_USERSET,
} GucContext;
/*
@@ -119,7 +119,7 @@ typedef enum
PGC_S_OVERRIDE, /* special case to forcibly set default */
PGC_S_INTERACTIVE, /* dividing line for error reporting */
PGC_S_TEST, /* test per-database or per-user setting */
- PGC_S_SESSION /* SET command */
+ PGC_S_SESSION, /* SET command */
} GucSource;
/*
@@ -196,7 +196,7 @@ typedef enum
/* Types of set_config_option actions */
GUC_ACTION_SET, /* regular SET command */
GUC_ACTION_LOCAL, /* SET LOCAL command */
- GUC_ACTION_SAVE /* function SET option, or temp assignment */
+ GUC_ACTION_SAVE, /* function SET option, or temp assignment */
} GucAction;
#define GUC_QUALIFIER_SEPARATOR '.'
diff --git a/src/include/utils/guc_tables.h b/src/include/utils/guc_tables.h
index d5a08806782..1ec95755700 100644
--- a/src/include/utils/guc_tables.h
+++ b/src/include/utils/guc_tables.h
@@ -26,7 +26,7 @@ enum config_type
PGC_INT,
PGC_REAL,
PGC_STRING,
- PGC_ENUM
+ PGC_ENUM,
};
union config_var_val
@@ -97,7 +97,7 @@ enum config_group
ERROR_HANDLING_OPTIONS,
PRESET_OPTIONS,
CUSTOM_OPTIONS,
- DEVELOPER_OPTIONS
+ DEVELOPER_OPTIONS,
};
/*
@@ -110,7 +110,7 @@ typedef enum
GUC_SAVE, /* entry caused by function SET option */
GUC_SET, /* entry caused by plain SET command */
GUC_LOCAL, /* entry caused by SET LOCAL command */
- GUC_SET_LOCAL /* entry caused by SET then SET LOCAL */
+ GUC_SET_LOCAL, /* entry caused by SET then SET LOCAL */
} GucStackState;
typedef struct guc_stack
diff --git a/src/include/utils/hsearch.h b/src/include/utils/hsearch.h
index bc3d5efa963..b5ed173e33b 100644
--- a/src/include/utils/hsearch.h
+++ b/src/include/utils/hsearch.h
@@ -113,7 +113,7 @@ typedef enum
HASH_FIND,
HASH_ENTER,
HASH_REMOVE,
- HASH_ENTER_NULL
+ HASH_ENTER_NULL,
} HASHACTION;
/* hash_seq status (should be considered an opaque type by callers) */
diff --git a/src/include/utils/jsonb.h b/src/include/utils/jsonb.h
index e62a5f2f442..addc9b608e2 100644
--- a/src/include/utils/jsonb.h
+++ b/src/include/utils/jsonb.h
@@ -26,7 +26,7 @@ typedef enum
WJB_BEGIN_ARRAY,
WJB_END_ARRAY,
WJB_BEGIN_OBJECT,
- WJB_END_OBJECT
+ WJB_END_OBJECT,
} JsonbIteratorToken;
/* Strategy numbers for GIN index opclasses */
@@ -335,7 +335,7 @@ typedef enum
JBI_ARRAY_ELEM,
JBI_OBJECT_START,
JBI_OBJECT_KEY,
- JBI_OBJECT_VALUE
+ JBI_OBJECT_VALUE,
} JsonbIterState;
typedef struct JsonbIterator
diff --git a/src/include/utils/lsyscache.h b/src/include/utils/lsyscache.h
index f5fdbfe116b..c22cabdf42e 100644
--- a/src/include/utils/lsyscache.h
+++ b/src/include/utils/lsyscache.h
@@ -35,7 +35,7 @@ typedef enum IOFuncSelector
IOFunc_input,
IOFunc_output,
IOFunc_receive,
- IOFunc_send
+ IOFunc_send,
} IOFuncSelector;
/* Flag bits for get_attstatsslot */
diff --git a/src/include/utils/memutils_internal.h b/src/include/utils/memutils_internal.h
index 2d107bbf9d4..a6574301753 100644
--- a/src/include/utils/memutils_internal.h
+++ b/src/include/utils/memutils_internal.h
@@ -111,7 +111,7 @@ typedef enum MemoryContextMethodID
MCTX_GENERATION_ID,
MCTX_SLAB_ID,
MCTX_ALIGNED_REDIRECT_ID,
- MCTX_UNUSED4_ID /* 111 occurs in wipe_mem'd memory */
+ MCTX_UNUSED4_ID, /* 111 occurs in wipe_mem'd memory */
} MemoryContextMethodID;
/*
diff --git a/src/include/utils/plancache.h b/src/include/utils/plancache.h
index 916e59d9fef..97e58157b7c 100644
--- a/src/include/utils/plancache.h
+++ b/src/include/utils/plancache.h
@@ -31,7 +31,7 @@ typedef enum
{
PLAN_CACHE_MODE_AUTO,
PLAN_CACHE_MODE_FORCE_GENERIC_PLAN,
- PLAN_CACHE_MODE_FORCE_CUSTOM_PLAN
+ PLAN_CACHE_MODE_FORCE_CUSTOM_PLAN,
} PlanCacheMode;
/* GUC parameter */
diff --git a/src/include/utils/portal.h b/src/include/utils/portal.h
index aa08b1e0fca..8b4471cbe53 100644
--- a/src/include/utils/portal.h
+++ b/src/include/utils/portal.h
@@ -92,7 +92,7 @@ typedef enum PortalStrategy
PORTAL_ONE_RETURNING,
PORTAL_ONE_MOD_WITH,
PORTAL_UTIL_SELECT,
- PORTAL_MULTI_QUERY
+ PORTAL_MULTI_QUERY,
} PortalStrategy;
/*
@@ -107,7 +107,7 @@ typedef enum PortalStatus
PORTAL_READY, /* PortalStart complete, can run it */
PORTAL_ACTIVE, /* portal is running (can't delete it) */
PORTAL_DONE, /* portal is finished (don't re-run it) */
- PORTAL_FAILED /* portal got error (can't re-run it) */
+ PORTAL_FAILED, /* portal got error (can't re-run it) */
} PortalStatus;
typedef struct PortalData *Portal;
diff --git a/src/include/utils/queryenvironment.h b/src/include/utils/queryenvironment.h
index 532219ade23..5587064a180 100644
--- a/src/include/utils/queryenvironment.h
+++ b/src/include/utils/queryenvironment.h
@@ -19,7 +19,7 @@
typedef enum EphemeralNameRelationType
{
- ENR_NAMED_TUPLESTORE /* named tuplestore relation; e.g., deltas */
+ ENR_NAMED_TUPLESTORE, /* named tuplestore relation; e.g., deltas */
} EphemeralNameRelationType;
/*
diff --git a/src/include/utils/rel.h b/src/include/utils/rel.h
index 1426a353cd0..0ad613c4b88 100644
--- a/src/include/utils/rel.h
+++ b/src/include/utils/rel.h
@@ -329,7 +329,7 @@ typedef enum StdRdOptIndexCleanup
{
STDRD_OPTION_VACUUM_INDEX_CLEANUP_AUTO = 0,
STDRD_OPTION_VACUUM_INDEX_CLEANUP_OFF,
- STDRD_OPTION_VACUUM_INDEX_CLEANUP_ON
+ STDRD_OPTION_VACUUM_INDEX_CLEANUP_ON,
} StdRdOptIndexCleanup;
typedef struct StdRdOptions
@@ -402,7 +402,7 @@ typedef enum ViewOptCheckOption
{
VIEW_OPTION_CHECK_OPTION_NOT_SET,
VIEW_OPTION_CHECK_OPTION_LOCAL,
- VIEW_OPTION_CHECK_OPTION_CASCADED
+ VIEW_OPTION_CHECK_OPTION_CASCADED,
} ViewOptCheckOption;
/*
diff --git a/src/include/utils/relcache.h b/src/include/utils/relcache.h
index b0955c0e623..f04b2477e34 100644
--- a/src/include/utils/relcache.h
+++ b/src/include/utils/relcache.h
@@ -62,7 +62,7 @@ typedef enum IndexAttrBitmapKind
INDEX_ATTR_BITMAP_PRIMARY_KEY,
INDEX_ATTR_BITMAP_IDENTITY_KEY,
INDEX_ATTR_BITMAP_HOT_BLOCKING,
- INDEX_ATTR_BITMAP_SUMMARIZED
+ INDEX_ATTR_BITMAP_SUMMARIZED,
} IndexAttrBitmapKind;
extern Bitmapset *RelationGetIndexAttrBitmap(Relation relation,
diff --git a/src/include/utils/resowner.h b/src/include/utils/resowner.h
index cd070b6080e..cb35e9e0904 100644
--- a/src/include/utils/resowner.h
+++ b/src/include/utils/resowner.h
@@ -47,7 +47,7 @@ typedef enum
{
RESOURCE_RELEASE_BEFORE_LOCKS,
RESOURCE_RELEASE_LOCKS,
- RESOURCE_RELEASE_AFTER_LOCKS
+ RESOURCE_RELEASE_AFTER_LOCKS,
} ResourceReleasePhase;
/*
diff --git a/src/include/utils/rls.h b/src/include/utils/rls.h
index 1e95f83ef35..08c68be1eaf 100644
--- a/src/include/utils/rls.h
+++ b/src/include/utils/rls.h
@@ -42,7 +42,7 @@ enum CheckEnableRlsResult
{
RLS_NONE,
RLS_NONE_ENV,
- RLS_ENABLED
+ RLS_ENABLED,
};
extern int check_enable_rls(Oid relid, Oid checkAsUser, bool noError);
diff --git a/src/include/utils/snapshot.h b/src/include/utils/snapshot.h
index 583a667a40a..cd9c2e6c3b6 100644
--- a/src/include/utils/snapshot.h
+++ b/src/include/utils/snapshot.h
@@ -115,7 +115,7 @@ typedef enum SnapshotType
* For visibility checks snapshot->min must have been set up with the xmin
* horizon to use.
*/
- SNAPSHOT_NON_VACUUMABLE
+ SNAPSHOT_NON_VACUUMABLE,
} SnapshotType;
typedef struct SnapshotData *Snapshot;
diff --git a/src/include/utils/syscache.h b/src/include/utils/syscache.h
index 67ea6e49452..5d47a652cc1 100644
--- a/src/include/utils/syscache.h
+++ b/src/include/utils/syscache.h
@@ -113,7 +113,7 @@ enum SysCacheIdentifier
TYPENAMENSP,
TYPEOID,
USERMAPPINGOID,
- USERMAPPINGUSERSERVER
+ USERMAPPINGUSERSERVER,
#define SysCacheSize (USERMAPPINGUSERSERVER + 1)
};
diff --git a/src/include/utils/timeout.h b/src/include/utils/timeout.h
index e561a1cde92..8a618533714 100644
--- a/src/include/utils/timeout.h
+++ b/src/include/utils/timeout.h
@@ -51,7 +51,7 @@ typedef enum TimeoutType
{
TMPARAM_AFTER,
TMPARAM_AT,
- TMPARAM_EVERY
+ TMPARAM_EVERY,
} TimeoutType;
typedef struct
diff --git a/src/include/utils/tuplesort.h b/src/include/utils/tuplesort.h
index 3a49a6d2d4d..9ed2de76cd6 100644
--- a/src/include/utils/tuplesort.h
+++ b/src/include/utils/tuplesort.h
@@ -77,7 +77,7 @@ typedef enum
SORT_TYPE_TOP_N_HEAPSORT = 1 << 0,
SORT_TYPE_QUICKSORT = 1 << 1,
SORT_TYPE_EXTERNAL_SORT = 1 << 2,
- SORT_TYPE_EXTERNAL_MERGE = 1 << 3
+ SORT_TYPE_EXTERNAL_MERGE = 1 << 3,
} TuplesortMethod;
#define NUM_TUPLESORTMETHODS 4
@@ -85,7 +85,7 @@ typedef enum
typedef enum
{
SORT_SPACE_TYPE_DISK,
- SORT_SPACE_TYPE_MEMORY
+ SORT_SPACE_TYPE_MEMORY,
} TuplesortSpaceType;
/* Bitwise option flags for tuple sorts */
diff --git a/src/include/utils/wait_event.h b/src/include/utils/wait_event.h
index 009b03a520a..00f7d620e75 100644
--- a/src/include/utils/wait_event.h
+++ b/src/include/utils/wait_event.h
@@ -56,7 +56,7 @@ extern PGDLLIMPORT uint32 *my_wait_event_info;
typedef enum
{
WAIT_EVENT_EXTENSION = PG_WAIT_EXTENSION,
- WAIT_EVENT_EXTENSION_FIRST_USER_DEFINED
+ WAIT_EVENT_EXTENSION_FIRST_USER_DEFINED,
} WaitEventExtension;
extern void WaitEventExtensionShmemInit(void);
diff --git a/src/include/utils/xml.h b/src/include/utils/xml.h
index 224f6d75ffd..50f12875543 100644
--- a/src/include/utils/xml.h
+++ b/src/include/utils/xml.h
@@ -27,13 +27,13 @@ typedef enum
XML_STANDALONE_YES,
XML_STANDALONE_NO,
XML_STANDALONE_NO_VALUE,
- XML_STANDALONE_OMITTED
+ XML_STANDALONE_OMITTED,
} XmlStandaloneType;
typedef enum
{
XMLBINARY_BASE64,
- XMLBINARY_HEX
+ XMLBINARY_HEX,
} XmlBinaryType;
typedef enum
@@ -41,7 +41,7 @@ typedef enum
PG_XML_STRICTNESS_LEGACY, /* ignore errors unless function result
* indicates error condition */
PG_XML_STRICTNESS_WELLFORMED, /* ignore non-parser messages */
- PG_XML_STRICTNESS_ALL /* report all notices/warnings/errors */
+ PG_XML_STRICTNESS_ALL, /* report all notices/warnings/errors */
} PgXmlStrictness;
/* struct PgXmlErrorContext is private to xml.c */
diff --git a/src/interfaces/libpq/fe-auth-scram.c b/src/interfaces/libpq/fe-auth-scram.c
index 61e6cd84d28..144bf189af4 100644
--- a/src/interfaces/libpq/fe-auth-scram.c
+++ b/src/interfaces/libpq/fe-auth-scram.c
@@ -46,7 +46,7 @@ typedef enum
FE_SCRAM_INIT,
FE_SCRAM_NONCE_SENT,
FE_SCRAM_PROOF_SENT,
- FE_SCRAM_FINISHED
+ FE_SCRAM_FINISHED,
} fe_scram_state_enum;
typedef struct
diff --git a/src/pl/plpgsql/src/plpgsql.h b/src/pl/plpgsql/src/plpgsql.h
index 2b4bcd1dbee..9f0a9121150 100644
--- a/src/pl/plpgsql/src/plpgsql.h
+++ b/src/pl/plpgsql/src/plpgsql.h
@@ -42,7 +42,7 @@ typedef enum PLpgSQL_nsitem_type
{
PLPGSQL_NSTYPE_LABEL, /* block label */
PLPGSQL_NSTYPE_VAR, /* scalar variable */
- PLPGSQL_NSTYPE_REC /* composite variable */
+ PLPGSQL_NSTYPE_REC, /* composite variable */
} PLpgSQL_nsitem_type;
/*
@@ -52,7 +52,7 @@ typedef enum PLpgSQL_label_type
{
PLPGSQL_LABEL_BLOCK, /* DECLARE/BEGIN block */
PLPGSQL_LABEL_LOOP, /* looping construct */
- PLPGSQL_LABEL_OTHER /* anything else */
+ PLPGSQL_LABEL_OTHER, /* anything else */
} PLpgSQL_label_type;
/*
@@ -64,7 +64,7 @@ typedef enum PLpgSQL_datum_type
PLPGSQL_DTYPE_ROW,
PLPGSQL_DTYPE_REC,
PLPGSQL_DTYPE_RECFIELD,
- PLPGSQL_DTYPE_PROMISE
+ PLPGSQL_DTYPE_PROMISE,
} PLpgSQL_datum_type;
/*
@@ -83,7 +83,7 @@ typedef enum PLpgSQL_promise_type
PLPGSQL_PROMISE_TG_NARGS,
PLPGSQL_PROMISE_TG_ARGV,
PLPGSQL_PROMISE_TG_EVENT,
- PLPGSQL_PROMISE_TG_TAG
+ PLPGSQL_PROMISE_TG_TAG,
} PLpgSQL_promise_type;
/*
@@ -93,7 +93,7 @@ typedef enum PLpgSQL_type_type
{
PLPGSQL_TTYPE_SCALAR, /* scalar types and domains */
PLPGSQL_TTYPE_REC, /* composite types, including RECORD */
- PLPGSQL_TTYPE_PSEUDO /* pseudotypes */
+ PLPGSQL_TTYPE_PSEUDO, /* pseudotypes */
} PLpgSQL_type_type;
/*
@@ -127,7 +127,7 @@ typedef enum PLpgSQL_stmt_type
PLPGSQL_STMT_PERFORM,
PLPGSQL_STMT_CALL,
PLPGSQL_STMT_COMMIT,
- PLPGSQL_STMT_ROLLBACK
+ PLPGSQL_STMT_ROLLBACK,
} PLpgSQL_stmt_type;
/*
@@ -138,7 +138,7 @@ enum
PLPGSQL_RC_OK,
PLPGSQL_RC_EXIT,
PLPGSQL_RC_RETURN,
- PLPGSQL_RC_CONTINUE
+ PLPGSQL_RC_CONTINUE,
};
/*
@@ -158,7 +158,7 @@ typedef enum PLpgSQL_getdiag_kind
PLPGSQL_GETDIAG_DATATYPE_NAME,
PLPGSQL_GETDIAG_MESSAGE_TEXT,
PLPGSQL_GETDIAG_TABLE_NAME,
- PLPGSQL_GETDIAG_SCHEMA_NAME
+ PLPGSQL_GETDIAG_SCHEMA_NAME,
} PLpgSQL_getdiag_kind;
/*
@@ -174,7 +174,7 @@ typedef enum PLpgSQL_raise_option_type
PLPGSQL_RAISEOPTION_CONSTRAINT,
PLPGSQL_RAISEOPTION_DATATYPE,
PLPGSQL_RAISEOPTION_TABLE,
- PLPGSQL_RAISEOPTION_SCHEMA
+ PLPGSQL_RAISEOPTION_SCHEMA,
} PLpgSQL_raise_option_type;
/*
@@ -184,7 +184,7 @@ typedef enum PLpgSQL_resolve_option
{
PLPGSQL_RESOLVE_ERROR, /* throw error if ambiguous */
PLPGSQL_RESOLVE_VARIABLE, /* prefer plpgsql var to table column */
- PLPGSQL_RESOLVE_COLUMN /* prefer table column to plpgsql var */
+ PLPGSQL_RESOLVE_COLUMN, /* prefer table column to plpgsql var */
} PLpgSQL_resolve_option;
@@ -957,7 +957,7 @@ typedef enum PLpgSQL_trigtype
{
PLPGSQL_DML_TRIGGER,
PLPGSQL_EVENT_TRIGGER,
- PLPGSQL_NOT_TRIGGER
+ PLPGSQL_NOT_TRIGGER,
} PLpgSQL_trigtype;
/*
@@ -1188,7 +1188,7 @@ typedef enum
{
IDENTIFIER_LOOKUP_NORMAL, /* normal processing of var names */
IDENTIFIER_LOOKUP_DECLARE, /* In DECLARE --- don't look up names */
- IDENTIFIER_LOOKUP_EXPR /* In SQL expression --- special case */
+ IDENTIFIER_LOOKUP_EXPR, /* In SQL expression --- special case */
} IdentifierLookup;
extern IdentifierLookup plpgsql_IdentifierLookup;
diff --git a/src/port/path.c b/src/port/path.c
index 65c7943fee1..ca91a6b6294 100644
--- a/src/port/path.c
+++ b/src/port/path.c
@@ -248,7 +248,7 @@ typedef enum
RELATIVE_PATH_INIT, /* At start of a relative path */
RELATIVE_WITH_N_DEPTH, /* We collected 'pathdepth' directories in a
* relative path */
- RELATIVE_WITH_PARENT_REF /* Relative path containing only double-dots */
+ RELATIVE_WITH_PARENT_REF, /* Relative path containing only double-dots */
} canonicalize_state;
/*
diff --git a/src/test/isolation/isolationtester.h b/src/test/isolation/isolationtester.h
index bb5c9ebece6..aae05131722 100644
--- a/src/test/isolation/isolationtester.h
+++ b/src/test/isolation/isolationtester.h
@@ -43,7 +43,7 @@ typedef enum
{
PSB_ONCE, /* force step to wait once */
PSB_OTHER_STEP, /* wait for another step to complete first */
- PSB_NUM_NOTICES /* wait for N notices from another session */
+ PSB_NUM_NOTICES, /* wait for N notices from another session */
} PermutationStepBlockerType;
typedef struct
diff --git a/src/test/modules/dummy_index_am/dummy_index_am.c b/src/test/modules/dummy_index_am/dummy_index_am.c
index c14e0abe0c6..cbdae7ab7a5 100644
--- a/src/test/modules/dummy_index_am/dummy_index_am.c
+++ b/src/test/modules/dummy_index_am/dummy_index_am.c
@@ -32,7 +32,7 @@ relopt_kind di_relopt_kind;
typedef enum DummyAmEnum
{
DUMMY_AM_ENUM_ONE,
- DUMMY_AM_ENUM_TWO
+ DUMMY_AM_ENUM_TWO,
} DummyAmEnum;
/* Dummy index options */
diff --git a/src/test/modules/libpq_pipeline/libpq_pipeline.c b/src/test/modules/libpq_pipeline/libpq_pipeline.c
index ada16f1db5a..3c009ee1539 100644
--- a/src/test/modules/libpq_pipeline/libpq_pipeline.c
+++ b/src/test/modules/libpq_pipeline/libpq_pipeline.c
@@ -639,7 +639,7 @@ enum PipelineInsertStep
BI_INSERT_ROWS,
BI_COMMIT_TX,
BI_SYNC,
- BI_DONE
+ BI_DONE,
};
static void
diff --git a/src/test/regress/pg_regress.c b/src/test/regress/pg_regress.c
index b35e87295e3..a9b8246cb71 100644
--- a/src/test/regress/pg_regress.c
+++ b/src/test/regress/pg_regress.c
@@ -91,7 +91,7 @@ typedef enum TAPtype
NOTE_END,
TEST_STATUS,
PLAN,
- NONE
+ NONE,
} TAPtype;
/* options settable from command line */
diff --git a/src/timezone/localtime.c b/src/timezone/localtime.c
index ad83c7ee5e0..0bc160ea7d7 100644
--- a/src/timezone/localtime.c
+++ b/src/timezone/localtime.c
@@ -66,7 +66,7 @@ enum r_type
{
JULIAN_DAY, /* Jn = Julian day */
DAY_OF_YEAR, /* n = day of year */
- MONTH_NTH_DAY_OF_WEEK /* Mm.n.d = month, week, day of week */
+ MONTH_NTH_DAY_OF_WEEK, /* Mm.n.d = month, week, day of week */
};
struct rule