24#ifndef PFS_COLUMN_TYPES_H
25#define PFS_COLUMN_TYPES_H
35#define COL_OBJECT_SCHEMA_CHAR_SIZE 64
37#define COL_OBJECT_SCHEMA_SIZE (COL_OBJECT_SCHEMA_CHAR_SIZE * 1)
48#define COL_OBJECT_NAME_EXTENDED_CHAR_SIZE 512
50#define COL_OBJECT_NAME_EXTENDED_SIZE (COL_OBJECT_NAME_EXTENDED_CHAR_SIZE * 1)
53#define COL_OBJECT_NAME_CHAR_SIZE 64
55#define COL_OBJECT_NAME_SIZE (COL_OBJECT_NAME_CHAR_SIZE * 1)
58#define COL_INDEX_NAME_CHAR_SIZE 64
60#define COL_INDEX_NAME_SIZE (COL_INDEX_NAME_CHAR_SIZE * 1)
69#define COL_INFO_CHAR_SIZE 1024
71#define COL_INFO_SIZE (COL_INFO_CHAR_SIZE * 1)
74#define COL_SOURCE_CHAR_SIZE 64
76#define COL_SOURCE_SIZE (COL_SOURCE_CHAR_SIZE * 1)
79#define COL_SHORT_NAME_CHAR_SIZE 32
81#define COL_SHORT_NAME_SIZE (COL_SHORT_NAME_CHAR_SIZE * 1)
97#define FIRST_TIMER_NAME (static_cast<int>(TIMER_NAME_CYCLE))
99#define LAST_TIMER_NAME (static_cast<int>(TIMER_NAME_THREAD_CPU))
101#define COUNT_TIMER_NAME (LAST_TIMER_NAME - FIRST_TIMER_NAME + 1)
218#define FIRST_OPERATION_TYPE (static_cast<int>(OPERATION_TYPE_LOCK))
220#define LAST_OPERATION_TYPE (static_cast<int>(OPERATION_TYPE_METADATA))
222#define COUNT_OPERATION_TYPE (LAST_OPERATION_TYPE - FIRST_OPERATION_TYPE + 1)
256#define FIRST_OBJECT_TYPE (static_cast<int>(OBJECT_TYPE_EVENT))
258#define LAST_OBJECT_TYPE (static_cast<int>(OBJECT_TYPE_CHECK_CONSTRAINT))
260#define COUNT_OBJECT_TYPE (LAST_OBJECT_TYPE - FIRST_OBJECT_TYPE + 1)
283#define FIRST_EVENT_TYPE (static_cast<int>(EVENT_TYPE_TRANSACTION))
285#define LAST_EVENT_TYPE (static_cast<int>(EVENT_TYPE_WAIT))
287#define COUNT_EVENT_TYPE (LAST_EVENT_TYPE - FIRST_EVENT_TYPE + 1)
299#define FIRST_TRANS_STATE (static_cast<int>(TRANS_STATE_ACTIVE))
301#define LAST_TRANS_STATE (static_cast<int>(TRANS_STATE_ROLLED_BACK))
303#define COUNT_TRANS_STATE (LAST_TRANS_STATE - FIRST_TRANS_STATE + 1)
319#define FIRST_TRANS_STATE_XA (static_cast<int>(TRANS_STATE_XA_NOTR))
321#define LAST_TRANS_STATE_XA (static_cast<int>(TRANS_STATE_XA_COMMITTED))
323#define COUNT_TRANS_STATE_XA (LAST_TRANS_STATE_XA - FIRST_TRANS_STATE_XA + 1)
337#define FIRST_TRANS_LEVEL (static_cast<int>(TRANS_LEVEL_READ_UNCOMMITTED))
339#define LAST_TRANS_LEVEL (static_cast<int>(TRANS_LEVEL_SERIALIZABLE))
341#define COUNT_TRANS_LEVEL (LAST_TRANS_LEVEL - FIRST_TRANS_LEVEL + 1)
352#define FIRST_TRANS_MODE (static_cast<int>(TRANS_MODE_READ_WRITE))
354#define LAST_TRANS_MODE (static_cast<int>(TRANS_MODE_READ_ONLY))
356#define COUNT_TRANS_MODE (LAST_TRANS_MODE - FIRST_TRANS_MODE + 1)
359#define INSTR_PROPERTIES_SET_SINGLETON (1 << 0)
360#define INSTR_PROPERTIES_SET_PROGRESS (1 << 1)
361#define INSTR_PROPERTIES_SET_USER (1 << 2)
362#define INSTR_PROPERTIES_SET_GLOBAL_STAT (1 << 3)
363#define INSTR_PROPERTIES_SET_MUTABLE (1 << 4)
364#define INSTR_PROPERTIES_SET_QUOTA_BY_DEFAULT (1 << 5)
367#define INSTR_FLAGS_SET_CONTROLLED (1 << 0)
370#define INSTR_FLAGS_MASK (1)
373#define THREAD_PROPERTIES_SET_SINGLETON (1 << 0)
374#define THREAD_PROPERTIES_SET_USER (1 << 1)
bool length(const dd::Spatial_reference_system *srs, const Geometry *g1, double *length, bool *null) noexcept
Computes the length of linestrings and multilinestrings.
Definition: length.cc:76
enum_isolation_level
Enum values for transaction isolation level columns.
Definition: pfs_column_types.h:329
@ TRANS_LEVEL_REPEATABLE_READ
Definition: pfs_column_types.h:332
@ TRANS_LEVEL_READ_COMMITTED
Definition: pfs_column_types.h:331
@ TRANS_LEVEL_READ_UNCOMMITTED
Definition: pfs_column_types.h:330
@ TRANS_LEVEL_SERIALIZABLE
Definition: pfs_column_types.h:333
enum_transaction_state
Enum values for transaction state columns.
Definition: pfs_column_types.h:292
@ TRANS_STATE_ACTIVE
Definition: pfs_column_types.h:293
@ TRANS_STATE_ROLLED_BACK
Definition: pfs_column_types.h:295
@ TRANS_STATE_COMMITTED
Definition: pfs_column_types.h:294
void string_to_object_type(const char *string, size_t length, enum_object_type *object_type)
Definition: pfs_column_types.cc:82
enum_transaction_mode
Enum values for transaction access mode columns.
Definition: pfs_column_types.h:346
@ TRANS_MODE_READ_ONLY
Definition: pfs_column_types.h:347
@ TRANS_MODE_READ_WRITE
Definition: pfs_column_types.h:348
enum_event_type
Enum values for the NESTING_EVENT_TYPE columns.
Definition: pfs_column_types.h:275
@ EVENT_TYPE_WAIT
Definition: pfs_column_types.h:279
@ EVENT_TYPE_TRANSACTION
Definition: pfs_column_types.h:276
@ EVENT_TYPE_STATEMENT
Definition: pfs_column_types.h:277
@ EVENT_TYPE_STAGE
Definition: pfs_column_types.h:278
enum_xa_transaction_state
Enum values for XA transaction state columns.
Definition: pfs_column_types.h:309
@ TRANS_STATE_XA_PREPARED
Definition: pfs_column_types.h:313
@ TRANS_STATE_XA_ROLLBACK_ONLY
Definition: pfs_column_types.h:314
@ TRANS_STATE_XA_COMMITTED
Definition: pfs_column_types.h:315
@ TRANS_STATE_XA_ACTIVE
Definition: pfs_column_types.h:311
@ TRANS_STATE_XA_IDLE
Definition: pfs_column_types.h:312
@ TRANS_STATE_XA_NOTR
Definition: pfs_column_types.h:310
enum_yes_no
Enum values for the various YES/NO columns.
Definition: pfs_column_types.h:110
@ ENUM_YES
Definition: pfs_column_types.h:110
@ ENUM_NO
Definition: pfs_column_types.h:110
enum_executed_on_engine
Enum values for the various EXECUTION_ENGINE columns.
Definition: pfs_column_types.h:121
@ ENUM_PRIMARY
Definition: pfs_column_types.h:121
@ ENUM_SECONDARY
Definition: pfs_column_types.h:121
enum_timer_name
Enum values for the TIMER_NAME columns.
Definition: pfs_column_types.h:88
@ TIMER_NAME_MICROSEC
Definition: pfs_column_types.h:91
@ TIMER_NAME_MILLISEC
Definition: pfs_column_types.h:92
@ TIMER_NAME_THREAD_CPU
Definition: pfs_column_types.h:93
@ TIMER_NAME_CYCLE
Definition: pfs_column_types.h:89
@ TIMER_NAME_NANOSEC
Definition: pfs_column_types.h:90
enum_object_type
Enum values for the various OBJECT_TYPE columns.
Definition: pfs_column_types.h:227
@ OBJECT_TYPE_FUNCTION
Definition: pfs_column_types.h:233
@ OBJECT_TYPE_SRID
Definition: pfs_column_types.h:247
@ OBJECT_TYPE_COLUMN_STATISTICS
Definition: pfs_column_types.h:249
@ OBJECT_TYPE_PROCEDURE
Definition: pfs_column_types.h:234
@ OBJECT_TYPE_CHECK_CONSTRAINT
Definition: pfs_column_types.h:253
@ OBJECT_TYPE_LOCKING_SERVICE
Definition: pfs_column_types.h:246
@ OBJECT_TYPE_TABLESPACE
Definition: pfs_column_types.h:245
@ OBJECT_TYPE_ACL_CACHE
Definition: pfs_column_types.h:248
@ OBJECT_TYPE_TABLE
Definition: pfs_column_types.h:235
@ OBJECT_TYPE_BACKUP_LOCK
Definition: pfs_column_types.h:250
@ OBJECT_TYPE_TRIGGER
Definition: pfs_column_types.h:236
@ NO_OBJECT_TYPE
Definition: pfs_column_types.h:228
@ OBJECT_TYPE_GLOBAL
Definition: pfs_column_types.h:241
@ OBJECT_TYPE_RESOURCE_GROUPS
Definition: pfs_column_types.h:251
@ OBJECT_TYPE_TEMPORARY_TABLE
Definition: pfs_column_types.h:240
@ OBJECT_TYPE_EVENT
Definition: pfs_column_types.h:232
@ OBJECT_TYPE_COMMIT
Definition: pfs_column_types.h:243
@ OBJECT_TYPE_SCHEMA
Definition: pfs_column_types.h:242
@ OBJECT_TYPE_FOREIGN_KEY
Definition: pfs_column_types.h:252
@ OBJECT_TYPE_USER_LEVEL_LOCK
Definition: pfs_column_types.h:244
enum_operation_type
Enum values for the various OPERATION columns.
Definition: pfs_column_types.h:130
@ OPERATION_TYPE_FILESTAT
Definition: pfs_column_types.h:169
@ OPERATION_TYPE_TL_WRITE_CONCURRENT_INSERT
Definition: pfs_column_types.h:188
@ OPERATION_TYPE_SOCKETSHUTDOWN
Definition: pfs_column_types.h:208
@ OPERATION_TYPE_SOCKETSELECT
Definition: pfs_column_types.h:209
@ OPERATION_TYPE_TL_READ_EXTERNAL
Definition: pfs_column_types.h:191
@ OPERATION_TYPE_SOCKETCONNECT
Definition: pfs_column_types.h:196
@ OPERATION_TYPE_FILEDELETE
Definition: pfs_column_types.h:172
@ OPERATION_TYPE_TRYSHAREDLOCK
Definition: pfs_column_types.h:146
@ OPERATION_TYPE_TL_WRITE_LOW_PRIORITY
Definition: pfs_column_types.h:189
@ OPERATION_TYPE_SOCKETSTAT
Definition: pfs_column_types.h:207
@ OPERATION_TYPE_FILESYNC
Definition: pfs_column_types.h:174
@ OPERATION_TYPE_TRYWRITELOCK
Definition: pfs_column_types.h:139
@ OPERATION_TYPE_TABLE_DELETE_ROW
Definition: pfs_column_types.h:180
@ OPERATION_TYPE_EXCLUSIVEUNLOCK
Definition: pfs_column_types.h:151
@ OPERATION_TYPE_TL_WRITE_EXTERNAL
Definition: pfs_column_types.h:192
@ OPERATION_TYPE_SOCKETCREATE
Definition: pfs_column_types.h:195
@ OPERATION_TYPE_SOCKETRECVFROM
Definition: pfs_column_types.h:202
@ OPERATION_TYPE_TL_WRITE_ALLOW_WRITE
Definition: pfs_column_types.h:187
@ OPERATION_TYPE_WAIT
Definition: pfs_column_types.h:154
@ OPERATION_TYPE_SHAREDLOCK
Definition: pfs_column_types.h:143
@ OPERATION_TYPE_SOCKETRECV
Definition: pfs_column_types.h:200
@ OPERATION_TYPE_FILECREATETMP
Definition: pfs_column_types.h:159
@ OPERATION_TYPE_TL_READ_NO_INSERTS
Definition: pfs_column_types.h:186
@ OPERATION_TYPE_TRYREADLOCK
Definition: pfs_column_types.h:138
@ OPERATION_TYPE_UNLOCK
Definition: pfs_column_types.h:140
@ OPERATION_TYPE_SOCKETSENDTO
Definition: pfs_column_types.h:201
@ OPERATION_TYPE_FILECHSIZE
Definition: pfs_column_types.h:171
@ OPERATION_TYPE_FILEREAD
Definition: pfs_column_types.h:164
@ OPERATION_TYPE_FILERENAME
Definition: pfs_column_types.h:173
@ OPERATION_TYPE_READLOCK
Definition: pfs_column_types.h:136
@ OPERATION_TYPE_TRYLOCK
Definition: pfs_column_types.h:133
@ OPERATION_TYPE_TRYEXCLUSIVELOCK
Definition: pfs_column_types.h:148
@ OPERATION_TYPE_TL_READ_HIGH_PRIORITY
Definition: pfs_column_types.h:185
@ OPERATION_TYPE_TABLE_UPDATE_ROW
Definition: pfs_column_types.h:179
@ OPERATION_TYPE_FILECLOSE
Definition: pfs_column_types.h:162
@ OPERATION_TYPE_SOCKETOPT
Definition: pfs_column_types.h:206
@ OPERATION_TYPE_TL_READ_WITH_SHARED_LOCKS
Definition: pfs_column_types.h:184
@ OPERATION_TYPE_SOCKETSEND
Definition: pfs_column_types.h:199
@ OPERATION_TYPE_LOCK
Definition: pfs_column_types.h:132
@ OPERATION_TYPE_FILEWRITE
Definition: pfs_column_types.h:165
@ OPERATION_TYPE_FILETELL
Definition: pfs_column_types.h:167
@ OPERATION_TYPE_FILEFLUSH
Definition: pfs_column_types.h:168
@ OPERATION_TYPE_FILESTREAMOPEN
Definition: pfs_column_types.h:161
@ OPERATION_TYPE_SOCKETSENDMSG
Definition: pfs_column_types.h:203
@ OPERATION_TYPE_FILEFSTAT
Definition: pfs_column_types.h:170
@ OPERATION_TYPE_TRYSHAREDEXCLUSIVELOCK
Definition: pfs_column_types.h:147
@ OPERATION_TYPE_SOCKETBIND
Definition: pfs_column_types.h:197
@ OPERATION_TYPE_SOCKETRECVMSG
Definition: pfs_column_types.h:204
@ OPERATION_TYPE_TL_READ_NORMAL
Definition: pfs_column_types.h:183
@ OPERATION_TYPE_TABLE_FETCH
Definition: pfs_column_types.h:177
@ OPERATION_TYPE_FILESEEK
Definition: pfs_column_types.h:166
@ OPERATION_TYPE_SHAREDEXCLUSIVELOCK
Definition: pfs_column_types.h:144
@ OPERATION_TYPE_SOCKETCLOSE
Definition: pfs_column_types.h:198
@ OPERATION_TYPE_TABLE_WRITE_ROW
Definition: pfs_column_types.h:178
@ OPERATION_TYPE_SOCKETSEEK
Definition: pfs_column_types.h:205
@ OPERATION_TYPE_FILECREATE
Definition: pfs_column_types.h:158
@ OPERATION_TYPE_METADATA
Definition: pfs_column_types.h:215
@ OPERATION_TYPE_SHAREDEXCLUSIVEUNLOCK
Definition: pfs_column_types.h:150
@ OPERATION_TYPE_WRITELOCK
Definition: pfs_column_types.h:137
@ OPERATION_TYPE_IDLE
Definition: pfs_column_types.h:212
@ OPERATION_TYPE_TIMEDWAIT
Definition: pfs_column_types.h:155
@ OPERATION_TYPE_TL_WRITE_NORMAL
Definition: pfs_column_types.h:190
@ OPERATION_TYPE_SHAREDUNLOCK
Definition: pfs_column_types.h:149
@ OPERATION_TYPE_FILEOPEN
Definition: pfs_column_types.h:160
@ OPERATION_TYPE_FILESTREAMCLOSE
Definition: pfs_column_types.h:163
@ OPERATION_TYPE_EXCLUSIVELOCK
Definition: pfs_column_types.h:145
void object_type_to_string(enum_object_type object_type, const char **string, size_t *length)
Definition: pfs_column_types.cc:64