From 611806cd726fc92989ac918eac48fd8d684869c7 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 26 Oct 2023 09:16:25 +0200 Subject: [PATCH] Add trailing commas to enum definitions Since C99, there can be a trailing comma after the last value in an enum definition. A lot of new code has been introducing this style on the fly. Some new patches are now taking an inconsistent approach to this. Some add the last comma on the fly if they add a new last value, some are trying to preserve the existing style in each place, some are even dropping the last comma if there was one. We could nudge this all in a consistent direction if we just add the trailing commas everywhere once. I omitted a few places where there was a fixed "last" value that will always stay last. I also skipped the header files of libpq and ecpg, in case people want to use those with older compilers. There were also a small number of cases where the enum type wasn't used anywhere (but the enum values were), which ended up confusing pgindent a bit, so I left those alone. Discussion: https://www.postgresql.org/message-id/flat/386f8c45-c8ac-4681-8add-e3b0852c1620%40eisentraut.org --- contrib/amcheck/verify_heapam.c | 6 +- contrib/btree_gist/btree_gist.h | 2 +- contrib/pg_prewarm/pg_prewarm.c | 2 +- .../pg_stat_statements/pg_stat_statements.c | 4 +- contrib/pg_surgery/heap_surgery.c | 2 +- contrib/pgcrypto/pgp.h | 12 ++-- contrib/postgres_fdw/deparse.c | 2 +- contrib/postgres_fdw/postgres_fdw.c | 8 +-- contrib/postgres_fdw/postgres_fdw.h | 2 +- contrib/vacuumlo/vacuumlo.c | 2 +- src/backend/access/gist/gistbuild.c | 2 +- src/backend/access/heap/vacuumlazy.c | 2 +- src/backend/access/nbtree/nbtree.c | 2 +- src/backend/access/nbtree/nbtsplitloc.c | 2 +- src/backend/access/spgist/spgscan.c | 2 +- src/backend/access/transam/slru.c | 2 +- src/backend/access/transam/xact.c | 4 +- src/backend/access/transam/xlogprefetcher.c | 2 +- src/backend/access/transam/xlogrecovery.c | 2 +- src/backend/catalog/pg_shdepend.c | 2 +- src/backend/commands/async.c | 2 +- src/backend/commands/copyto.c | 2 +- src/backend/commands/dbcommands.c | 2 +- src/backend/commands/user.c | 2 +- src/backend/commands/vacuumparallel.c | 2 +- src/backend/executor/execIndexing.c | 2 +- src/backend/executor/functions.c | 2 +- src/backend/executor/nodeMergejoin.c | 2 +- src/backend/executor/nodeTidrangescan.c | 2 +- src/backend/libpq/auth-scram.c | 2 +- src/backend/nodes/tidbitmap.c | 4 +- src/backend/optimizer/path/allpaths.c | 2 +- src/backend/optimizer/path/indxpath.c | 2 +- src/backend/optimizer/plan/setrefs.c | 2 +- src/backend/optimizer/util/pathnode.c | 2 +- src/backend/optimizer/util/predtest.c | 2 +- src/backend/parser/parse_collate.c | 2 +- src/backend/parser/parse_cte.c | 2 +- src/backend/parser/parse_func.c | 2 +- src/backend/partitioning/partprune.c | 4 +- src/backend/port/sysv_shmem.c | 2 +- src/backend/postmaster/autovacuum.c | 2 +- src/backend/postmaster/postmaster.c | 4 +- src/backend/regex/regc_pg_locale.c | 2 +- src/backend/replication/logical/worker.c | 2 +- src/backend/replication/pgoutput/pgoutput.c | 2 +- src/backend/replication/walreceiver.c | 2 +- src/backend/storage/file/fd.c | 2 +- src/backend/storage/ipc/procarray.c | 4 +- src/backend/utils/adt/arrayfuncs.c | 2 +- src/backend/utils/adt/formatting.c | 2 +- src/backend/utils/adt/jsonb_gin.c | 2 +- src/backend/utils/adt/jsonfuncs.c | 2 +- src/backend/utils/adt/like_support.c | 4 +- src/backend/utils/adt/rangetypes_gist.c | 2 +- src/backend/utils/adt/tsquery.c | 4 +- src/backend/utils/cache/evtcache.c | 2 +- src/backend/utils/sort/tuplesort.c | 2 +- src/backend/utils/sort/tuplestore.c | 2 +- src/bin/pg_basebackup/bbstreamer.h | 2 +- src/bin/pg_basebackup/pg_basebackup.c | 4 +- src/bin/pg_basebackup/walmethods.h | 2 +- src/bin/pg_checksums/pg_checksums.c | 2 +- src/bin/pg_ctl/pg_ctl.c | 6 +- src/bin/pg_dump/parallel.c | 2 +- src/bin/pg_dump/parallel.h | 2 +- src/bin/pg_dump/pg_backup.h | 8 +-- src/bin/pg_dump/pg_backup_archiver.h | 10 +-- src/bin/pg_dump/pg_dump.c | 2 +- src/bin/pg_dump/pg_dump.h | 2 +- src/bin/pg_rewind/filemap.h | 4 +- src/bin/pg_upgrade/pg_upgrade.h | 4 +- src/bin/pg_verifybackup/parse_manifest.c | 6 +- src/bin/pgbench/pgbench.c | 10 +-- src/bin/pgbench/pgbench.h | 6 +- src/bin/psql/command.c | 2 +- src/bin/psql/command.h | 2 +- src/bin/psql/psqlscanslash.h | 2 +- src/bin/psql/settings.h | 12 ++-- src/bin/psql/startup.c | 2 +- src/bin/scripts/reindexdb.c | 2 +- src/bin/scripts/vacuumdb.c | 2 +- src/common/cryptohash.c | 2 +- src/common/cryptohash_openssl.c | 2 +- src/common/hmac.c | 2 +- src/common/hmac_openssl.c | 2 +- src/common/jsonapi.c | 2 +- src/include/access/amapi.h | 2 +- src/include/access/genam.h | 2 +- src/include/access/gin_private.h | 2 +- src/include/access/gist_private.h | 2 +- src/include/access/heapam.h | 2 +- src/include/access/multixact.h | 2 +- src/include/access/reloptions.h | 2 +- src/include/access/slru.h | 2 +- src/include/access/spgist.h | 2 +- src/include/access/tableam.h | 8 +-- src/include/access/toast_compression.h | 2 +- src/include/access/xact.h | 8 +-- src/include/access/xlog.h | 10 +-- src/include/access/xlog_internal.h | 2 +- src/include/access/xlogprefetcher.h | 2 +- src/include/access/xlogreader.h | 2 +- src/include/access/xlogrecovery.h | 6 +- src/include/access/xlogutils.h | 4 +- src/include/backup/backup_manifest.h | 2 +- src/include/catalog/dependency.h | 6 +- src/include/catalog/index.h | 2 +- src/include/catalog/namespace.h | 6 +- src/include/catalog/objectaccess.h | 2 +- src/include/catalog/pg_cast.h | 8 +-- src/include/catalog/pg_constraint.h | 2 +- src/include/catalog/pg_control.h | 2 +- src/include/catalog/pg_init_privs.h | 4 +- src/include/commands/copyfrom_internal.h | 6 +- src/include/commands/explain.h | 2 +- src/include/common/checksum_helper.h | 2 +- src/include/common/compression.h | 2 +- src/include/common/cryptohash.h | 2 +- src/include/common/file_utils.h | 4 +- src/include/common/jsonapi.h | 4 +- src/include/common/relpath.h | 2 +- src/include/common/saslprep.h | 2 +- src/include/executor/hashjoin.h | 2 +- src/include/fe_utils/conditional.h | 2 +- src/include/fe_utils/print.h | 8 +-- src/include/fe_utils/psqlscan.h | 6 +- src/include/fmgr.h | 2 +- src/include/funcapi.h | 2 +- src/include/libpq/crypt.h | 2 +- src/include/libpq/hba.h | 8 +-- src/include/libpq/libpq-be.h | 2 +- src/include/miscadmin.h | 2 +- src/include/nodes/bitmapset.h | 4 +- src/include/nodes/execnodes.h | 12 ++-- src/include/nodes/lockoptions.h | 6 +- src/include/nodes/nodes.h | 14 ++-- src/include/nodes/parsenodes.h | 66 +++++++++---------- src/include/nodes/pathnodes.h | 10 +-- src/include/nodes/plannodes.h | 8 +-- src/include/nodes/primnodes.h | 24 +++---- src/include/nodes/queryjumble.h | 2 +- src/include/nodes/replnodes.h | 2 +- src/include/optimizer/cost.h | 2 +- src/include/optimizer/optimizer.h | 2 +- src/include/optimizer/paths.h | 2 +- src/include/parser/parse_coerce.h | 2 +- src/include/parser/parse_func.h | 2 +- src/include/parser/parser.h | 4 +- src/include/pgstat.h | 4 +- src/include/pgtar.h | 6 +- src/include/postmaster/autovacuum.h | 2 +- src/include/postmaster/bgworker.h | 4 +- src/include/replication/logicalproto.h | 2 +- src/include/replication/output_plugin.h | 2 +- src/include/replication/reorderbuffer.h | 4 +- src/include/replication/slot.h | 2 +- src/include/replication/snapbuild.h | 2 +- src/include/replication/walreceiver.h | 4 +- src/include/replication/walsender.h | 2 +- src/include/replication/walsender_private.h | 2 +- src/include/replication/worker_internal.h | 6 +- src/include/rewrite/rewriteManip.h | 2 +- src/include/storage/bufmgr.h | 4 +- src/include/storage/dsm_impl.h | 2 +- src/include/storage/lmgr.h | 2 +- src/include/storage/lock.h | 6 +- src/include/storage/lwlock.h | 4 +- src/include/storage/pg_shmem.h | 4 +- src/include/storage/pmsignal.h | 2 +- src/include/storage/predicate_internals.h | 4 +- src/include/storage/procsignal.h | 2 +- src/include/storage/shm_mq.h | 2 +- src/include/storage/sync.h | 4 +- src/include/tcop/deparse_utility.h | 2 +- src/include/tcop/dest.h | 2 +- src/include/tcop/tcopprot.h | 2 +- src/include/tcop/utility.h | 2 +- src/include/tsearch/dicts/spell.h | 2 +- src/include/tsearch/ts_utils.h | 2 +- src/include/utils/acl.h | 4 +- src/include/utils/backend_progress.h | 2 +- src/include/utils/backend_status.h | 2 +- src/include/utils/bytea.h | 2 +- src/include/utils/elog.h | 2 +- src/include/utils/guc.h | 6 +- src/include/utils/guc_tables.h | 6 +- src/include/utils/hsearch.h | 2 +- src/include/utils/jsonb.h | 4 +- src/include/utils/lsyscache.h | 2 +- src/include/utils/memutils_internal.h | 2 +- src/include/utils/plancache.h | 2 +- src/include/utils/portal.h | 4 +- src/include/utils/queryenvironment.h | 2 +- src/include/utils/rel.h | 4 +- src/include/utils/relcache.h | 2 +- src/include/utils/resowner.h | 2 +- src/include/utils/rls.h | 2 +- src/include/utils/snapshot.h | 2 +- src/include/utils/syscache.h | 2 +- src/include/utils/timeout.h | 2 +- src/include/utils/tuplesort.h | 4 +- src/include/utils/wait_event.h | 2 +- src/include/utils/xml.h | 6 +- src/interfaces/libpq/fe-auth-scram.c | 2 +- src/pl/plpgsql/src/plpgsql.h | 24 +++---- src/port/path.c | 2 +- src/test/isolation/isolationtester.h | 2 +- .../modules/dummy_index_am/dummy_index_am.c | 2 +- .../modules/libpq_pipeline/libpq_pipeline.c | 2 +- src/test/regress/pg_regress.c | 2 +- src/timezone/localtime.c | 2 +- 212 files changed, 390 insertions(+), 390 deletions(-) diff --git a/contrib/amcheck/verify_heapam.c b/contrib/amcheck/verify_heapam.c index 97f3253522..78eed49b1b 100644 --- a/contrib/amcheck/verify_heapam.c +++ b/contrib/amcheck/verify_heapam.c @@ -43,7 +43,7 @@ typedef enum XidBoundsViolation XID_IN_FUTURE, XID_PRECEDES_CLUSTERMIN, XID_PRECEDES_RELMIN, - XID_BOUNDS_OK + XID_BOUNDS_OK, } XidBoundsViolation; typedef enum XidCommitStatus @@ -51,14 +51,14 @@ typedef enum XidCommitStatus XID_COMMITTED, XID_IS_CURRENT_XID, XID_IN_PROGRESS, - XID_ABORTED + XID_ABORTED, } XidCommitStatus; typedef enum SkipPages { SKIP_PAGES_ALL_FROZEN, SKIP_PAGES_ALL_VISIBLE, - SKIP_PAGES_NONE + SKIP_PAGES_NONE, } SkipPages; /* diff --git a/contrib/btree_gist/btree_gist.h b/contrib/btree_gist/btree_gist.h index f22f14ac4c..0db8522c8a 100644 --- a/contrib/btree_gist/btree_gist.h +++ b/contrib/btree_gist/btree_gist.h @@ -35,7 +35,7 @@ enum gbtree_type gbt_t_bool, gbt_t_inet, gbt_t_uuid, - gbt_t_enum + gbt_t_enum, }; #endif diff --git a/contrib/pg_prewarm/pg_prewarm.c b/contrib/pg_prewarm/pg_prewarm.c index e464d0d4d2..01fc2c8ad9 100644 --- a/contrib/pg_prewarm/pg_prewarm.c +++ b/contrib/pg_prewarm/pg_prewarm.c @@ -33,7 +33,7 @@ typedef enum { PREWARM_PREFETCH, PREWARM_READ, - PREWARM_BUFFER + PREWARM_BUFFER, } PrewarmType; static PGIOAlignedBlock blockbuffer; diff --git a/contrib/pg_stat_statements/pg_stat_statements.c b/contrib/pg_stat_statements/pg_stat_statements.c index baff87b49e..767b6ceb10 100644 --- a/contrib/pg_stat_statements/pg_stat_statements.c +++ b/contrib/pg_stat_statements/pg_stat_statements.c @@ -118,7 +118,7 @@ typedef enum pgssVersion PGSS_V1_8, PGSS_V1_9, PGSS_V1_10, - PGSS_V1_11 + PGSS_V1_11, } pgssVersion; typedef enum pgssStoreKind @@ -282,7 +282,7 @@ typedef enum { PGSS_TRACK_NONE, /* track no statements */ PGSS_TRACK_TOP, /* only top level statements */ - PGSS_TRACK_ALL /* all statements, including nested ones */ + PGSS_TRACK_ALL, /* all statements, including nested ones */ } PGSSTrackLevel; static const struct config_enum_entry track_options[] = diff --git a/contrib/pg_surgery/heap_surgery.c b/contrib/pg_surgery/heap_surgery.c index 88a40ab7d3..4308d1933b 100644 --- a/contrib/pg_surgery/heap_surgery.c +++ b/contrib/pg_surgery/heap_surgery.c @@ -29,7 +29,7 @@ PG_MODULE_MAGIC; typedef enum HeapTupleForceOption { HEAP_FORCE_KILL, - HEAP_FORCE_FREEZE + HEAP_FORCE_FREEZE, } HeapTupleForceOption; PG_FUNCTION_INFO_V1(heap_force_kill); diff --git a/contrib/pgcrypto/pgp.h b/contrib/pgcrypto/pgp.h index cb8b32aba0..0bbfd0217b 100644 --- a/contrib/pgcrypto/pgp.h +++ b/contrib/pgcrypto/pgp.h @@ -38,7 +38,7 @@ enum PGP_S2K_TYPE { PGP_S2K_SIMPLE = 0, PGP_S2K_SALTED = 1, - PGP_S2K_ISALTED = 3 + PGP_S2K_ISALTED = 3, }; enum PGP_PKT_TYPE @@ -60,7 +60,7 @@ enum PGP_PKT_TYPE PGP_PKT_USER_ATTR = 17, PGP_PKT_SYMENCRYPTED_DATA_MDC = 18, PGP_PKT_MDC = 19, - PGP_PKT_PRIV_61 = 61 /* occurs in gpg secring */ + PGP_PKT_PRIV_61 = 61, /* occurs in gpg secring */ }; enum PGP_PUB_ALGO_TYPE @@ -69,7 +69,7 @@ enum PGP_PUB_ALGO_TYPE PGP_PUB_RSA_ENCRYPT = 2, PGP_PUB_RSA_SIGN = 3, PGP_PUB_ELG_ENCRYPT = 16, - PGP_PUB_DSA_SIGN = 17 + PGP_PUB_DSA_SIGN = 17, }; enum PGP_SYMENC_TYPE @@ -84,7 +84,7 @@ enum PGP_SYMENC_TYPE PGP_SYM_AES_128 = 7, /* should */ PGP_SYM_AES_192 = 8, PGP_SYM_AES_256 = 9, - PGP_SYM_TWOFISH = 10 + PGP_SYM_TWOFISH = 10, }; enum PGP_COMPR_TYPE @@ -92,7 +92,7 @@ enum PGP_COMPR_TYPE PGP_COMPR_NONE = 0, /* must */ PGP_COMPR_ZIP = 1, /* should */ PGP_COMPR_ZLIB = 2, - PGP_COMPR_BZIP2 = 3 + PGP_COMPR_BZIP2 = 3, }; enum PGP_DIGEST_TYPE @@ -106,7 +106,7 @@ enum PGP_DIGEST_TYPE PGP_DIGEST_HAVAL5_160 = 7, /* obsolete */ PGP_DIGEST_SHA256 = 8, PGP_DIGEST_SHA384 = 9, - PGP_DIGEST_SHA512 = 10 + PGP_DIGEST_SHA512 = 10, }; #define PGP_MAX_KEY (256/8) diff --git a/contrib/postgres_fdw/deparse.c b/contrib/postgres_fdw/deparse.c index 09d6dd60dd..09fd489a90 100644 --- a/contrib/postgres_fdw/deparse.c +++ b/contrib/postgres_fdw/deparse.c @@ -83,7 +83,7 @@ typedef enum * it has default collation that is not * traceable to a foreign Var */ FDW_COLLATE_SAFE, /* collation derives from a foreign Var */ - FDW_COLLATE_UNSAFE /* collation is non-default and derives from + FDW_COLLATE_UNSAFE, /* collation is non-default and derives from * something other than a foreign Var */ } FDWCollateState; diff --git a/contrib/postgres_fdw/postgres_fdw.c b/contrib/postgres_fdw/postgres_fdw.c index 1393716587..8b3206ceaa 100644 --- a/contrib/postgres_fdw/postgres_fdw.c +++ b/contrib/postgres_fdw/postgres_fdw.c @@ -82,7 +82,7 @@ enum FdwScanPrivateIndex * String describing join i.e. names of relations being joined and types * of join, added when the scan is join */ - FdwScanPrivateRelations + FdwScanPrivateRelations, }; /* @@ -108,7 +108,7 @@ enum FdwModifyPrivateIndex /* has-returning flag (as a Boolean node) */ FdwModifyPrivateHasReturning, /* Integer list of attribute numbers retrieved by RETURNING */ - FdwModifyPrivateRetrievedAttrs + FdwModifyPrivateRetrievedAttrs, }; /* @@ -129,7 +129,7 @@ enum FdwDirectModifyPrivateIndex /* Integer list of attribute numbers retrieved by RETURNING */ FdwDirectModifyPrivateRetrievedAttrs, /* set-processed flag (as a Boolean node) */ - FdwDirectModifyPrivateSetProcessed + FdwDirectModifyPrivateSetProcessed, }; /* @@ -285,7 +285,7 @@ enum FdwPathPrivateIndex /* has-final-sort flag (as a Boolean node) */ FdwPathPrivateHasFinalSort, /* has-limit flag (as a Boolean node) */ - FdwPathPrivateHasLimit + FdwPathPrivateHasLimit, }; /* Struct for extra information passed to estimate_path_cost_size() */ diff --git a/contrib/postgres_fdw/postgres_fdw.h b/contrib/postgres_fdw/postgres_fdw.h index 02c1152319..47157ac887 100644 --- a/contrib/postgres_fdw/postgres_fdw.h +++ b/contrib/postgres_fdw/postgres_fdw.h @@ -143,7 +143,7 @@ typedef enum PgFdwSamplingMethod ANALYZE_SAMPLE_AUTO, /* choose by server version */ ANALYZE_SAMPLE_RANDOM, /* remote random() */ ANALYZE_SAMPLE_SYSTEM, /* TABLESAMPLE system */ - ANALYZE_SAMPLE_BERNOULLI /* TABLESAMPLE bernoulli */ + ANALYZE_SAMPLE_BERNOULLI, /* TABLESAMPLE bernoulli */ } PgFdwSamplingMethod; /* in postgres_fdw.c */ diff --git a/contrib/vacuumlo/vacuumlo.c b/contrib/vacuumlo/vacuumlo.c index 8941262731..e02d84cc96 100644 --- a/contrib/vacuumlo/vacuumlo.c +++ b/contrib/vacuumlo/vacuumlo.c @@ -35,7 +35,7 @@ enum trivalue { TRI_DEFAULT, TRI_NO, - TRI_YES + TRI_YES, }; struct _param diff --git a/src/backend/access/gist/gistbuild.c b/src/backend/access/gist/gistbuild.c index 5e0c1447f9..a45e2fe375 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 42e49bc159..6985d299b2 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 92950b3776..a88b36a589 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 43b67893d9..85834c3dd7 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 8c00b724db..f350f0b4f1 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 71ac70fb40..9ed24e1185 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 37c5e34cce..5d89f82818 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 539928cb85..a98336f26a 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 315e4b27cb..49bb3fe452 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 91c7f3426f..8f09c632f9 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 d148d10850..38ddae08b8 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 0378f0ade0..c66a047c4a 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 c52ecc61a6..ae38f83024 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 ce77a055e5..f47aa38231 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 351ab4957a..176c555d63 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 3c6730632d..384b39839a 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 f55424eb5a..bace25234c 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 ed3ebe92e5..3cdab77dfc 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 da622d3f5f..6f97c35daa 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 118d15b1a1..df416af6b9 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 29a1858441..bb6c830562 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 3cda88e333..67921a0826 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 01e773b91d..03a5fbdc6d 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 7962200885..fc3709510d 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 bc8757f9d7..0b1d17b9d3 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 237c883874..fe83e45311 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 9f6afc351c..c480ce3682 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 c5b1a49725..6992a788c0 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 b3f0b6a137..6c29471bb3 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 ae76f7267e..3f31ecc956 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 f1eb5a1e20..2de280ecb6 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 327ea0d45a..3a6f24a023 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 9cb624eab8..2d0aed50cb 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 31e6300b5d..42d15b6303 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 functions */ PG_REGEX_LOCALE_WIDE_L, /* Use locale_t functions */ PG_REGEX_LOCALE_1BYTE_L, /* Use locale_t 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 567485c4a4..ba67eb156f 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 c1c66848f3..e8add5ee5d 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 feff709435..a3128874b2 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 b7607aa1be..b884df71bf 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 2cdad91ed8..4ca2789d10 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 6a920a02b7..88f0bff687 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 e27ea8ef97..8131091f79 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 e941439d74..6538b2b3b0 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 0bff272f24..aa37c401e5 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 34e1b709ae..fbea881fcc 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 0884678381..0fdf821a58 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 67ad876a27..5ddab6d7cd 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 ab5111c90f..5a721a4046 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 c7a6c03f97..ab6353bdcd 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 38bbed4604..0c44437822 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 f999e635d9..c7dd92d421 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 1a8cef345d..f32684a8f2 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 54a22fe607..6be5ff534e 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 e009ba5e0b..6543d9ce08 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 4099d240e0..3b145bd838 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 da0723ad38..85e6515ac2 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 17f03c1cce..e26cf9833c 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 3a57cdd97d..9ef2f2017e 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 b07673933d..917283fd34 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 83aeef2751..7afdbf4d9d 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 9036b13f6a..d8f27f187c 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 48f240dff1..988d4590e0 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 ba8129d135..a710f325de 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 f0acd9f1e7..bf0227c668 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 e86c653cd2..2e1650d0ad 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 f8efa4b868..acaa54cd6f 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 4dfcf04fe0..82cc091568 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 9af85deeae..b40fcaceb6 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 7724242f37..c217f958f7 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 1106954236..78e9e9692e 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 5a28b6f713..78526eb9da 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 002c41f221..ab7f190850 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 d682573dc1..dd0d51659b 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 42dbed7226..c4c322856b 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 a654cd4ad4..d9ca5a1409 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 f0b239dcf0..ea3b8c2bed 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 12be542fa2..9164f4fdfe 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 18cd78b86f..71631dbb85 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 4476ff7fba..995725502a 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 4e626c615e..f31dec6ee0 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 76b9923201..d1df9827f3 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 18c37f0bd8..82eb7b4bd8 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 62fac1d5d2..a2d7a0ea72 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 246f757f6a..0be1355892 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 1d5bfa62ff..3602397cf5 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 a8a424d92d..552cc19e68 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 fe31d32dbe..480e38ad96 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 230bc39cc0..dbb709b56c 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 7f02820caf..b667290fa2 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 7d3b9446e6..cb90f227ce 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 4ad572cb87..a14126d164 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 70856adcb0..a6380905fe 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 7dd7f20ad0..892ec3e027 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 da32c7db77..0813722715 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 47c29350f5..ee0bc74278 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 5b77b11f50..565e1fa6da 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 5a481dbcf5..bd7067ae42 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 ffd5e9dc82..abac0f6da5 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 096e4830ba..a4770eaf12 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 94b0d2df3c..e78c73c877 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 d8145dd4c6..58d6072d4c 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 a2518388b3..a6bfa0dc68 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 9b9d8faf35..a026b42515 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 1136613259..2ae72e3b26 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 3f3df954a8..027f738dbc 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 ac2c16f8b8..5ec41589cd 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 3d3e632a0c..f9525fb572 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 a74deef67b..06039142cf 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 38aae9dd87..c94ace6e8a 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 24b6dbebbd..ee26703959 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 49d523e611..3bb20170cb 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 1207e542f7..2f8533c2b7 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 511c21682e..35e73d3111 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 f622db962f..a90b8e1320 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 cb2a2cde8a..eb3af804f7 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 36e72c977c..5852feaf47 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 cc6652def9..13ebb00362 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 6a90fcab9e..a9a190164e 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 b120f5e7fe..edf61e53f3 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 cc0cca3272..15e8ba17df 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 ddcd27469a..d62ad4371a 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 189f6d0df2..8ea837ae82 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 a0b74c8095..c57ed12fb6 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 7232b03e37..f0cc651435 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 14de6a9ff1..161243b2d0 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 108d69ba28..5d7f17dee0 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 bc5e98336f..71c46fdd8e 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 f8e8fe699a..4c32682e4c 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 f637937cd2..cf7e79062e 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 (), (), ... */ 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 2027265b31..86596f367b 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 d64fe6a328..24d46c76dc 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 60d72a876b..ab6d7fdc6d 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 7649e095aa..0769081c7a 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 4321ba8f86..5142a08729 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 bee090ffc2..6d50afbf74 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 514746c585..11fd5013c7 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 2d8dbba7cd..9e7408c7ec 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 35ce4a3547..d01e2c5519 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 e316f5da49..7e0d823599 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 8d90064d87..1e160c652d 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 57a2c0866a..fe2642f71a 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 8abfb9c19c..b52691707a 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 65afd1ea1e..b553e858ad 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 d7a5c1a946..e90ff376a6 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 c5be981eae..4bb04c4eac 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 3ac6729386..2ffcf17505 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 3cb03168de..f986101e50 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 758ca79a81..d3535eed58 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 f49b941b53..63f50a13d6 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 281626fa6f..04b439dc50 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 9df7e50f94..268f8e8d0f 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 7d919583bd..13fd5877a6 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 8f4bed0958..47854b5cd4 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 365061fff4..ca12780bc7 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 9241f86861..2eda466d44 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 daf07bd19c..56dbbe979e 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 952ebe75cb..39f0e346b0 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 8575bea25c..590c026b5b 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 d77410bdea..b038e599c0 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 ba0cdc13c7..aea769920c 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 92dc764667..5e71ac1709 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 93f84500bf..6a917fe32e 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 3a3a7eca77..548519117a 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 2e04e41837..3145e9292d 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 cfbcfa6797..963cc82125 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 b585810b9a..4bd322e4f9 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 a7d86e7abd..e18d9bf49b 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 ab43b638ee..6c49db3bb7 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 59e64aea07..05ef9baec8 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 0763f9ffe7..9984631689 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 d2aae0c337..082a6fc976 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 02bc4d08d6..17f5bfcb5d 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 70dea55fc0..3740523b5c 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 d51c840daf..75fc18c432 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 166dd0366e..58f69f0538 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 0292e88b4f..0971d5ce33 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 902e57c0ca..20fe13702b 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 d5a0880678..1ec9575570 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 bc3d5efa96..b5ed173e33 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 e62a5f2f44..addc9b608e 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 f5fdbfe116..c22cabdf42 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 2d107bbf9d..a657430175 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 916e59d9fe..97e58157b7 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 aa08b1e0fc..8b4471cbe5 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 532219ade2..5587064a18 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 1426a353cd..0ad613c4b8 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 b0955c0e62..f04b2477e3 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 cd070b6080..cb35e9e090 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 1e95f83ef3..08c68be1ea 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 583a667a40..cd9c2e6c3b 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 67ea6e4945..5d47a652cc 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 e561a1cde9..8a61853371 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 3a49a6d2d4..9ed2de76cd 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 009b03a520..00f7d620e7 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 224f6d75ff..50f1287554 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 61e6cd84d2..144bf189af 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 2b4bcd1dbe..9f0a912115 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 65c7943fee..ca91a6b629 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 bb5c9ebece..aae0513172 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 c14e0abe0c..cbdae7ab7a 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 ada16f1db5..3c009ee153 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 b35e87295e..a9b8246cb7 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 ad83c7ee5e..0bc160ea7d 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