mirror of
https://github.com/postgres/postgres.git
synced 2025-09-11 00:12:06 +03:00
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
This commit is contained in:
@@ -51,7 +51,7 @@ typedef enum IndexAMProperty
|
||||
AMPROP_CAN_UNIQUE,
|
||||
AMPROP_CAN_MULTI_COL,
|
||||
AMPROP_CAN_EXCLUDE,
|
||||
AMPROP_CAN_INCLUDE
|
||||
AMPROP_CAN_INCLUDE,
|
||||
} IndexAMProperty;
|
||||
|
||||
/*
|
||||
|
@@ -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;
|
||||
|
||||
|
||||
|
@@ -143,7 +143,7 @@ typedef enum
|
||||
{
|
||||
GPTP_NO_WORK,
|
||||
GPTP_INSERT,
|
||||
GPTP_SPLIT
|
||||
GPTP_SPLIT,
|
||||
} GinPlaceToPageRC;
|
||||
|
||||
typedef struct GinBtreeData
|
||||
|
@@ -385,7 +385,7 @@ typedef enum GistOptBufferingMode
|
||||
{
|
||||
GIST_OPTION_BUFFERING_AUTO,
|
||||
GIST_OPTION_BUFFERING_ON,
|
||||
GIST_OPTION_BUFFERING_OFF
|
||||
GIST_OPTION_BUFFERING_OFF,
|
||||
} GistOptBufferingMode;
|
||||
|
||||
/*
|
||||
|
@@ -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;
|
||||
|
||||
/*
|
||||
|
@@ -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
|
||||
|
@@ -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 */
|
||||
|
@@ -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;
|
||||
|
||||
/*
|
||||
|
@@ -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
|
||||
|
@@ -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;
|
||||
|
||||
/*
|
||||
|
@@ -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;
|
||||
|
||||
/*
|
||||
|
@@ -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,
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
@@ -25,7 +25,7 @@ typedef enum
|
||||
{
|
||||
RECOVERY_PREFETCH_OFF,
|
||||
RECOVERY_PREFETCH_ON,
|
||||
RECOVERY_PREFETCH_TRY
|
||||
RECOVERY_PREFETCH_TRY,
|
||||
} RecoveryPrefetchValue;
|
||||
|
||||
struct XLogPrefetcher;
|
||||
|
@@ -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 */
|
||||
|
@@ -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 */
|
||||
|
@@ -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;
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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 */
|
||||
|
@@ -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);
|
||||
|
@@ -52,7 +52,7 @@ typedef enum ObjectAccessType
|
||||
OAT_POST_ALTER,
|
||||
OAT_NAMESPACE_SEARCH,
|
||||
OAT_FUNCTION_EXECUTE,
|
||||
OAT_TRUNCATE
|
||||
OAT_TRUNCATE,
|
||||
} ObjectAccessType;
|
||||
|
||||
/*
|
||||
|
@@ -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 */
|
||||
|
||||
|
@@ -202,7 +202,7 @@ typedef enum ConstraintCategory
|
||||
{
|
||||
CONSTRAINT_RELATION,
|
||||
CONSTRAINT_DOMAIN,
|
||||
CONSTRAINT_ASSERTION /* for future expansion */
|
||||
CONSTRAINT_ASSERTION, /* for future expansion */
|
||||
} ConstraintCategory;
|
||||
|
||||
|
||||
|
@@ -93,7 +93,7 @@ typedef enum DBState
|
||||
DB_SHUTDOWNING,
|
||||
DB_IN_CRASH_RECOVERY,
|
||||
DB_IN_ARCHIVE_RECOVERY,
|
||||
DB_IN_PRODUCTION
|
||||
DB_IN_PRODUCTION,
|
||||
} DBState;
|
||||
|
||||
/*
|
||||
|
@@ -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 */
|
||||
|
@@ -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;
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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;
|
||||
|
||||
/*
|
||||
|
@@ -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)
|
||||
|
@@ -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 */
|
||||
|
@@ -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 */
|
||||
|
@@ -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;
|
||||
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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);
|
||||
|
@@ -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;
|
||||
|
||||
/*
|
||||
|
@@ -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;
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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 */
|
||||
|
@@ -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);
|
||||
|
@@ -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,
|
||||
|
@@ -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);
|
||||
|
@@ -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;
|
||||
|
||||
/*
|
||||
|
@@ -65,7 +65,7 @@ typedef enum CAC_state
|
||||
CAC_SHUTDOWN,
|
||||
CAC_RECOVERY,
|
||||
CAC_NOTCONSISTENT,
|
||||
CAC_TOOMANY
|
||||
CAC_TOOMANY,
|
||||
} CAC_state;
|
||||
|
||||
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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 */
|
||||
|
@@ -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;
|
||||
|
||||
/*
|
||||
|
@@ -34,7 +34,7 @@ typedef enum OverridingKind
|
||||
{
|
||||
OVERRIDING_NOT_SET = 0,
|
||||
OVERRIDING_USER_VALUE,
|
||||
OVERRIDING_SYSTEM_VALUE
|
||||
OVERRIDING_SYSTEM_VALUE,
|
||||
} OverridingKind;
|
||||
|
||||
/* Possible sources of a Query */
|
||||
@@ -44,7 +44,7 @@ typedef enum QuerySource
|
||||
QSRC_PARSER, /* added by parse analysis (now unused) */
|
||||
QSRC_INSTEAD_RULE, /* added by unconditional INSTEAD rule */
|
||||
QSRC_QUAL_INSTEAD_RULE, /* added by conditional INSTEAD rule */
|
||||
QSRC_NON_INSTEAD_RULE /* added by non-INSTEAD rule */
|
||||
QSRC_NON_INSTEAD_RULE, /* added by non-INSTEAD rule */
|
||||
} QuerySource;
|
||||
|
||||
/* Sort ordering options for ORDER BY and CREATE INDEX */
|
||||
@@ -53,14 +53,14 @@ typedef enum SortByDir
|
||||
SORTBY_DEFAULT,
|
||||
SORTBY_ASC,
|
||||
SORTBY_DESC,
|
||||
SORTBY_USING /* not allowed in CREATE INDEX ... */
|
||||
SORTBY_USING, /* not allowed in CREATE INDEX ... */
|
||||
} SortByDir;
|
||||
|
||||
typedef enum SortByNulls
|
||||
{
|
||||
SORTBY_NULLS_DEFAULT,
|
||||
SORTBY_NULLS_FIRST,
|
||||
SORTBY_NULLS_LAST
|
||||
SORTBY_NULLS_LAST,
|
||||
} SortByNulls;
|
||||
|
||||
/* Options for [ ALL | DISTINCT ] */
|
||||
@@ -68,7 +68,7 @@ typedef enum SetQuantifier
|
||||
{
|
||||
SET_QUANTIFIER_DEFAULT,
|
||||
SET_QUANTIFIER_ALL,
|
||||
SET_QUANTIFIER_DISTINCT
|
||||
SET_QUANTIFIER_DISTINCT,
|
||||
} SetQuantifier;
|
||||
|
||||
/*
|
||||
@@ -320,7 +320,7 @@ typedef enum A_Expr_Kind
|
||||
AEXPR_BETWEEN, /* name must be "BETWEEN" */
|
||||
AEXPR_NOT_BETWEEN, /* name must be "NOT BETWEEN" */
|
||||
AEXPR_BETWEEN_SYM, /* name must be "BETWEEN SYMMETRIC" */
|
||||
AEXPR_NOT_BETWEEN_SYM /* name must be "NOT BETWEEN SYMMETRIC" */
|
||||
AEXPR_NOT_BETWEEN_SYM, /* name must be "NOT BETWEEN SYMMETRIC" */
|
||||
} A_Expr_Kind;
|
||||
|
||||
typedef struct A_Expr
|
||||
@@ -392,7 +392,7 @@ typedef enum RoleSpecType
|
||||
ROLESPEC_CURRENT_ROLE, /* role spec is CURRENT_ROLE */
|
||||
ROLESPEC_CURRENT_USER, /* role spec is CURRENT_USER */
|
||||
ROLESPEC_SESSION_USER, /* role spec is SESSION_USER */
|
||||
ROLESPEC_PUBLIC /* role name is "public" */
|
||||
ROLESPEC_PUBLIC, /* role name is "public" */
|
||||
} RoleSpecType;
|
||||
|
||||
typedef struct RoleSpec
|
||||
@@ -799,7 +799,7 @@ typedef enum DefElemAction
|
||||
DEFELEM_UNSPEC, /* no action given */
|
||||
DEFELEM_SET,
|
||||
DEFELEM_ADD,
|
||||
DEFELEM_DROP
|
||||
DEFELEM_DROP,
|
||||
} DefElemAction;
|
||||
|
||||
typedef struct DefElem
|
||||
@@ -865,7 +865,7 @@ typedef enum PartitionStrategy
|
||||
{
|
||||
PARTITION_STRATEGY_LIST = 'l',
|
||||
PARTITION_STRATEGY_RANGE = 'r',
|
||||
PARTITION_STRATEGY_HASH = 'h'
|
||||
PARTITION_STRATEGY_HASH = 'h',
|
||||
} PartitionStrategy;
|
||||
|
||||
/*
|
||||
@@ -917,7 +917,7 @@ typedef enum PartitionRangeDatumKind
|
||||
{
|
||||
PARTITION_RANGE_DATUM_MINVALUE = -1, /* less than any other value */
|
||||
PARTITION_RANGE_DATUM_VALUE = 0, /* a specific (bounded) value */
|
||||
PARTITION_RANGE_DATUM_MAXVALUE = 1 /* greater than any other value */
|
||||
PARTITION_RANGE_DATUM_MAXVALUE = 1, /* greater than any other value */
|
||||
} PartitionRangeDatumKind;
|
||||
|
||||
typedef struct PartitionRangeDatum
|
||||
@@ -1018,7 +1018,7 @@ typedef enum RTEKind
|
||||
RTE_VALUES, /* VALUES (<exprlist>), (<exprlist>), ... */
|
||||
RTE_CTE, /* common table expr (WITH list element) */
|
||||
RTE_NAMEDTUPLESTORE, /* tuplestore, e.g. for AFTER triggers */
|
||||
RTE_RESULT /* RTE represents an empty FROM clause; such
|
||||
RTE_RESULT, /* RTE represents an empty FROM clause; such
|
||||
* RTEs are added by the planner, they're not
|
||||
* present during parsing or rewriting */
|
||||
} RTEKind;
|
||||
@@ -1315,7 +1315,7 @@ typedef enum WCOKind
|
||||
WCO_RLS_UPDATE_CHECK, /* RLS UPDATE WITH CHECK policy */
|
||||
WCO_RLS_CONFLICT_CHECK, /* RLS ON CONFLICT DO UPDATE USING policy */
|
||||
WCO_RLS_MERGE_UPDATE_CHECK, /* RLS MERGE UPDATE USING policy */
|
||||
WCO_RLS_MERGE_DELETE_CHECK /* RLS MERGE DELETE USING policy */
|
||||
WCO_RLS_MERGE_DELETE_CHECK, /* RLS MERGE DELETE USING policy */
|
||||
} WCOKind;
|
||||
|
||||
typedef struct WithCheckOption
|
||||
@@ -1453,7 +1453,7 @@ typedef enum GroupingSetKind
|
||||
GROUPING_SET_SIMPLE,
|
||||
GROUPING_SET_ROLLUP,
|
||||
GROUPING_SET_CUBE,
|
||||
GROUPING_SET_SETS
|
||||
GROUPING_SET_SETS,
|
||||
} GroupingSetKind;
|
||||
|
||||
typedef struct GroupingSet
|
||||
@@ -1592,7 +1592,7 @@ typedef enum CTEMaterialize
|
||||
{
|
||||
CTEMaterializeDefault, /* no option specified */
|
||||
CTEMaterializeAlways, /* MATERIALIZED */
|
||||
CTEMaterializeNever /* NOT MATERIALIZED */
|
||||
CTEMaterializeNever, /* NOT MATERIALIZED */
|
||||
} CTEMaterialize;
|
||||
|
||||
typedef struct CTESearchClause
|
||||
@@ -1972,7 +1972,7 @@ typedef enum SetOperation
|
||||
SETOP_NONE = 0,
|
||||
SETOP_UNION,
|
||||
SETOP_INTERSECT,
|
||||
SETOP_EXCEPT
|
||||
SETOP_EXCEPT,
|
||||
} SetOperation;
|
||||
|
||||
typedef struct SelectStmt
|
||||
@@ -2168,7 +2168,7 @@ typedef enum ObjectType
|
||||
OBJECT_TSTEMPLATE,
|
||||
OBJECT_TYPE,
|
||||
OBJECT_USER_MAPPING,
|
||||
OBJECT_VIEW
|
||||
OBJECT_VIEW,
|
||||
} ObjectType;
|
||||
|
||||
/* ----------------------
|
||||
@@ -2191,7 +2191,7 @@ typedef struct CreateSchemaStmt
|
||||
typedef enum DropBehavior
|
||||
{
|
||||
DROP_RESTRICT, /* drop fails if any dependent objects */
|
||||
DROP_CASCADE /* remove dependent objects too */
|
||||
DROP_CASCADE, /* remove dependent objects too */
|
||||
} DropBehavior;
|
||||
|
||||
/* ----------------------
|
||||
@@ -2274,7 +2274,7 @@ typedef enum AlterTableType
|
||||
AT_AddIdentity, /* ADD IDENTITY */
|
||||
AT_SetIdentity, /* SET identity column options */
|
||||
AT_DropIdentity, /* DROP IDENTITY */
|
||||
AT_ReAddStatistics /* internal to commands/tablecmds.c */
|
||||
AT_ReAddStatistics, /* internal to commands/tablecmds.c */
|
||||
} AlterTableType;
|
||||
|
||||
typedef struct ReplicaIdentityStmt
|
||||
@@ -2346,7 +2346,7 @@ typedef enum GrantTargetType
|
||||
{
|
||||
ACL_TARGET_OBJECT, /* grant on specific named object(s) */
|
||||
ACL_TARGET_ALL_IN_SCHEMA, /* grant on all objects in given schema(s) */
|
||||
ACL_TARGET_DEFAULTS /* ALTER DEFAULT PRIVILEGES */
|
||||
ACL_TARGET_DEFAULTS, /* ALTER DEFAULT PRIVILEGES */
|
||||
} GrantTargetType;
|
||||
|
||||
typedef struct GrantStmt
|
||||
@@ -2473,7 +2473,7 @@ typedef enum VariableSetKind
|
||||
VAR_SET_CURRENT, /* SET var FROM CURRENT */
|
||||
VAR_SET_MULTI, /* special case for SET TRANSACTION ... */
|
||||
VAR_RESET, /* RESET var */
|
||||
VAR_RESET_ALL /* RESET ALL */
|
||||
VAR_RESET_ALL, /* RESET ALL */
|
||||
} VariableSetKind;
|
||||
|
||||
typedef struct VariableSetStmt
|
||||
@@ -2572,7 +2572,7 @@ typedef enum ConstrType /* types of constraints */
|
||||
CONSTR_ATTR_DEFERRABLE, /* attributes for previous constraint node */
|
||||
CONSTR_ATTR_NOT_DEFERRABLE,
|
||||
CONSTR_ATTR_DEFERRED,
|
||||
CONSTR_ATTR_IMMEDIATE
|
||||
CONSTR_ATTR_IMMEDIATE,
|
||||
} ConstrType;
|
||||
|
||||
/* Foreign key action codes */
|
||||
@@ -2812,7 +2812,7 @@ typedef enum ImportForeignSchemaType
|
||||
{
|
||||
FDW_IMPORT_SCHEMA_ALL, /* all relations wanted */
|
||||
FDW_IMPORT_SCHEMA_LIMIT_TO, /* include only listed tables in import */
|
||||
FDW_IMPORT_SCHEMA_EXCEPT /* exclude listed tables from import */
|
||||
FDW_IMPORT_SCHEMA_EXCEPT, /* exclude listed tables from import */
|
||||
} ImportForeignSchemaType;
|
||||
|
||||
typedef struct ImportForeignSchemaStmt
|
||||
@@ -2949,7 +2949,7 @@ typedef enum RoleStmtType
|
||||
{
|
||||
ROLESTMT_ROLE,
|
||||
ROLESTMT_USER,
|
||||
ROLESTMT_GROUP
|
||||
ROLESTMT_GROUP,
|
||||
} RoleStmtType;
|
||||
|
||||
typedef struct CreateRoleStmt
|
||||
@@ -3194,7 +3194,7 @@ typedef enum FetchDirection
|
||||
FETCH_BACKWARD,
|
||||
/* for these, howMany indicates a position; only one row is fetched */
|
||||
FETCH_ABSOLUTE,
|
||||
FETCH_RELATIVE
|
||||
FETCH_RELATIVE,
|
||||
} FetchDirection;
|
||||
|
||||
#define FETCH_ALL LONG_MAX
|
||||
@@ -3319,7 +3319,7 @@ typedef enum FunctionParameterMode
|
||||
FUNC_PARAM_VARIADIC = 'v', /* variadic (always input) */
|
||||
FUNC_PARAM_TABLE = 't', /* table function output column */
|
||||
/* this is not used in pg_proc: */
|
||||
FUNC_PARAM_DEFAULT = 'd' /* default; effectively same as IN */
|
||||
FUNC_PARAM_DEFAULT = 'd', /* default; effectively same as IN */
|
||||
} FunctionParameterMode;
|
||||
|
||||
typedef struct FunctionParameter
|
||||
@@ -3535,7 +3535,7 @@ typedef enum TransactionStmtKind
|
||||
TRANS_STMT_ROLLBACK_TO,
|
||||
TRANS_STMT_PREPARE,
|
||||
TRANS_STMT_COMMIT_PREPARED,
|
||||
TRANS_STMT_ROLLBACK_PREPARED
|
||||
TRANS_STMT_ROLLBACK_PREPARED,
|
||||
} TransactionStmtKind;
|
||||
|
||||
typedef struct TransactionStmt
|
||||
@@ -3608,7 +3608,7 @@ typedef enum ViewCheckOption
|
||||
{
|
||||
NO_CHECK_OPTION,
|
||||
LOCAL_CHECK_OPTION,
|
||||
CASCADED_CHECK_OPTION
|
||||
CASCADED_CHECK_OPTION,
|
||||
} ViewCheckOption;
|
||||
|
||||
typedef struct ViewStmt
|
||||
@@ -3800,7 +3800,7 @@ typedef enum DiscardMode
|
||||
DISCARD_ALL,
|
||||
DISCARD_PLANS,
|
||||
DISCARD_SEQUENCES,
|
||||
DISCARD_TEMP
|
||||
DISCARD_TEMP,
|
||||
} DiscardMode;
|
||||
|
||||
typedef struct DiscardStmt
|
||||
@@ -3842,7 +3842,7 @@ typedef enum ReindexObjectType
|
||||
REINDEX_OBJECT_TABLE, /* table or materialized view */
|
||||
REINDEX_OBJECT_SCHEMA, /* schema */
|
||||
REINDEX_OBJECT_SYSTEM, /* system catalogs */
|
||||
REINDEX_OBJECT_DATABASE /* database */
|
||||
REINDEX_OBJECT_DATABASE, /* database */
|
||||
} ReindexObjectType;
|
||||
|
||||
typedef struct ReindexStmt
|
||||
@@ -3977,7 +3977,7 @@ typedef enum AlterTSConfigType
|
||||
ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN,
|
||||
ALTER_TSCONFIG_REPLACE_DICT,
|
||||
ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN,
|
||||
ALTER_TSCONFIG_DROP_MAPPING
|
||||
ALTER_TSCONFIG_DROP_MAPPING,
|
||||
} AlterTSConfigType;
|
||||
|
||||
typedef struct AlterTSConfigurationStmt
|
||||
@@ -4014,7 +4014,7 @@ typedef enum PublicationObjSpecType
|
||||
PUBLICATIONOBJ_TABLES_IN_SCHEMA, /* All tables in schema */
|
||||
PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA, /* All tables in first element of
|
||||
* search_path */
|
||||
PUBLICATIONOBJ_CONTINUATION /* Continuation of previous type */
|
||||
PUBLICATIONOBJ_CONTINUATION, /* Continuation of previous type */
|
||||
} PublicationObjSpecType;
|
||||
|
||||
typedef struct PublicationObjSpec
|
||||
@@ -4039,7 +4039,7 @@ typedef enum AlterPublicationAction
|
||||
{
|
||||
AP_AddObjects, /* add objects to publication */
|
||||
AP_DropObjects, /* remove objects from publication */
|
||||
AP_SetObjects /* set list of objects */
|
||||
AP_SetObjects, /* set list of objects */
|
||||
} AlterPublicationAction;
|
||||
|
||||
typedef struct AlterPublicationStmt
|
||||
@@ -4078,7 +4078,7 @@ typedef enum AlterSubscriptionType
|
||||
ALTER_SUBSCRIPTION_DROP_PUBLICATION,
|
||||
ALTER_SUBSCRIPTION_REFRESH,
|
||||
ALTER_SUBSCRIPTION_ENABLED,
|
||||
ALTER_SUBSCRIPTION_SKIP
|
||||
ALTER_SUBSCRIPTION_SKIP,
|
||||
} AlterSubscriptionType;
|
||||
|
||||
typedef struct AlterSubscriptionStmt
|
||||
|
@@ -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;
|
||||
|
||||
/*
|
||||
|
@@ -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 */
|
||||
|
@@ -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;
|
||||
|
||||
/*
|
||||
|
@@ -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 */
|
||||
|
@@ -20,7 +20,7 @@
|
||||
typedef enum ReplicationKind
|
||||
{
|
||||
REPLICATION_KIND_PHYSICAL,
|
||||
REPLICATION_KIND_LOGICAL
|
||||
REPLICATION_KIND_LOGICAL,
|
||||
} ReplicationKind;
|
||||
|
||||
|
||||
|
@@ -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;
|
||||
|
||||
|
||||
|
@@ -104,7 +104,7 @@ typedef enum
|
||||
{
|
||||
DEBUG_PARALLEL_OFF,
|
||||
DEBUG_PARALLEL_ON,
|
||||
DEBUG_PARALLEL_REGRESS
|
||||
DEBUG_PARALLEL_REGRESS,
|
||||
} DebugParallelMode;
|
||||
|
||||
/* GUC parameters */
|
||||
|
@@ -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);
|
||||
|
@@ -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;
|
||||
|
||||
|
||||
|
@@ -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;
|
||||
|
||||
|
||||
|
@@ -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 :-() */
|
||||
|
@@ -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;
|
||||
|
||||
/* ----------
|
||||
|
@@ -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,
|
||||
|
@@ -22,7 +22,7 @@
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
AVW_BRINSummarizeRange
|
||||
AVW_BRINSummarizeRange,
|
||||
} AutoVacuumWorkItemType;
|
||||
|
||||
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
||||
/*
|
||||
|
@@ -17,7 +17,7 @@ struct OutputPluginCallbacks;
|
||||
typedef enum OutputPluginOutputType
|
||||
{
|
||||
OUTPUT_PLUGIN_BINARY_OUTPUT,
|
||||
OUTPUT_PLUGIN_TEXTUAL_OUTPUT
|
||||
OUTPUT_PLUGIN_TEXTUAL_OUTPUT,
|
||||
} OutputPluginOutputType;
|
||||
|
||||
/*
|
||||
|
@@ -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 */
|
||||
|
@@ -34,7 +34,7 @@ typedef enum ReplicationSlotPersistency
|
||||
{
|
||||
RS_PERSISTENT,
|
||||
RS_EPHEMERAL,
|
||||
RS_TEMPORARY
|
||||
RS_TEMPORARY,
|
||||
} ReplicationSlotPersistency;
|
||||
|
||||
/*
|
||||
|
@@ -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 */
|
||||
|
@@ -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;
|
||||
|
||||
|
@@ -21,7 +21,7 @@ typedef enum
|
||||
{
|
||||
CRS_EXPORT_SNAPSHOT,
|
||||
CRS_NOEXPORT_SNAPSHOT,
|
||||
CRS_USE_SNAPSHOT
|
||||
CRS_USE_SNAPSHOT,
|
||||
} CRSSnapshotAction;
|
||||
|
||||
/* global state */
|
||||
|
@@ -28,7 +28,7 @@ typedef enum WalSndState
|
||||
WALSNDSTATE_BACKUP,
|
||||
WALSNDSTATE_CATCHUP,
|
||||
WALSNDSTATE_STREAMING,
|
||||
WALSNDSTATE_STOPPING
|
||||
WALSNDSTATE_STOPPING,
|
||||
} WalSndState;
|
||||
|
||||
/*
|
||||
|
@@ -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;
|
||||
|
||||
/*
|
||||
|
@@ -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;
|
||||
|
||||
|
||||
|
@@ -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;
|
||||
|
||||
|
@@ -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. */
|
||||
|
@@ -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);
|
||||
|
@@ -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;
|
||||
|
||||
|
@@ -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;
|
||||
|
||||
/*
|
||||
|
@@ -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
|
||||
|
@@ -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 */
|
||||
|
@@ -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;
|
||||
|
||||
/*
|
||||
|
@@ -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;
|
||||
|
||||
/*
|
||||
|
@@ -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;
|
||||
|
||||
/*
|
||||
|
@@ -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;
|
||||
|
||||
/*
|
||||
|
@@ -29,7 +29,7 @@ typedef enum CollectedCommandType
|
||||
SCT_AlterOpFamily,
|
||||
SCT_AlterDefaultPrivileges,
|
||||
SCT_CreateOpClass,
|
||||
SCT_AlterTSConfig
|
||||
SCT_AlterTSConfig,
|
||||
} CollectedCommandType;
|
||||
|
||||
/*
|
||||
|
@@ -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;
|
||||
|
||||
/* ----------------
|
||||
|
@@ -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;
|
||||
|
@@ -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 */
|
||||
|
@@ -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;
|
||||
|
||||
/*
|
||||
|
@@ -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;
|
||||
|
||||
/*
|
||||
|
@@ -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;
|
||||
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -29,7 +29,7 @@ typedef enum BackendState
|
||||
STATE_IDLEINTRANSACTION,
|
||||
STATE_FASTPATH,
|
||||
STATE_IDLEINTRANSACTION_ABORTED,
|
||||
STATE_DISABLED
|
||||
STATE_DISABLED,
|
||||
} BackendState;
|
||||
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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;
|
||||
|
@@ -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 '.'
|
||||
|
@@ -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
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user