CUBRID Engine  latest
storage_common.h File Reference
#include "config.h"
#include <limits.h>
#include <time.h>
#include <stdio.h>
#include <assert.h>
#include "porting.h"
#include "porting_inline.hpp"
#include "dbtype_def.h"
#include "sha1.h"
#include "cache_time.h"
Include dependency graph for storage_common.h:

Go to the source code of this file.

Classes

struct  btree_node_split_info
 
struct  hfid
 
struct  btid
 
struct  ehid
 
struct  recdes
 
struct  lorecdes
 
struct  spacedb_all
 
struct  spacedb_onevol
 
struct  spacedb_files
 
struct  xasl_id
 
struct  dbdef_vol_ext_info
 

Macros

#define NULL_VOLID   (-1) /* Value of an invalid volume identifier */
 
#define NULL_SECTID   (-1) /* Value of an invalid sector identifier */
 
#define NULL_PAGEID   (-1) /* Value of an invalid page identifier */
 
#define NULL_SLOTID   (-1) /* Value of an invalid slot identifier */
 
#define NULL_OFFSET   (-1) /* Value of an invalid offset */
 
#define NULL_FILEID   (-1) /* Value of an invalid file identifier */
 
#define VOLID_MAX   SHRT_MAX
 
#define PAGEID_MAX   INT_MAX
 
#define SECTID_MAX   INT_MAX
 
#define PGLENGTH_MAX   SHRT_MAX
 
#define VOL_MAX_NPAGES(page_size)   ((sizeof(off_t) == 4) ? (INT_MAX / (page_size)) : INT_MAX)
 
#define LOGPAGEID_MAX   0x7fffffffffffLL /* 6 bytes length */
 
#define IO_DEFAULT_PAGE_SIZE   (16 * ONE_K)
 
#define IO_MIN_PAGE_SIZE   (4 * ONE_K)
 
#define IO_MAX_PAGE_SIZE   (16 * ONE_K)
 
#define LOG_PAGESIZE   (db_log_page_size())
 
#define IO_PAGESIZE   (db_io_page_size())
 
#define DB_PAGESIZE   (db_page_size())
 
#define IS_POWER_OF_2(x)   (((x) & ((x) - 1)) == 0)
 
#define DISK_SECTOR_NPAGES   64
 
#define IO_SECTORSIZE   (DISK_SECTOR_NPAGES * IO_PAGESIZE)
 
#define DB_SECTORSIZE   (DISK_SECTOR_NPAGES * DB_PAGESIZE)
 
#define VOL_MAX_NSECTS(page_size)   (VOL_MAX_NPAGES(page_size) / DISK_SECTOR_NPAGES)
 
#define SECTOR_FIRST_PAGEID(sid)   ((sid) * DISK_SECTOR_NPAGES)
 
#define SECTOR_LAST_PAGEID(sid)   ((((sid) + 1) * DISK_SECTOR_NPAGES) - 1)
 
#define SECTOR_FROM_PAGEID(pageid)   ((pageid) / DISK_SECTOR_NPAGES)
 
#define VSID_FROM_VPID(vsid, vpid)   (vsid)->volid = (vpid)->volid; (vsid)->sectid = SECTOR_FROM_PAGEID ((vpid)->pageid)
 
#define VSID_IS_SECTOR_OF_VPID(vsid, vpid)   ((vsid)->volid == (vpid)->volid && (vsid)->sectid == SECTOR_FROM_PAGEID ((vpid)->pageid))
 
#define DB_MAX_PATH_LENGTH   PATH_MAX
 
#define DISK_VFID_SIZE   (OR_INT_SIZE + OR_SHORT_SIZE)
 
#define DISK_VPID_SIZE   (OR_INT_SIZE + OR_SHORT_SIZE)
 
#define DISK_VFID_ALIGNED_SIZE   (DISK_VFID_SIZE + OR_SHORT_SIZE)
 
#define DISK_VPID_ALIGNED_SIZE   (DISK_VPID_SIZE + OR_SHORT_SIZE)
 
#define NON_LEAF_RECORD_SIZE   (DISK_VPID_ALIGNED_SIZE)
 
#define LEAF_RECORD_SIZE   (0)
 
#define SPLIT_INFO_SIZE   (OR_FLOAT_SIZE + OR_INT_SIZE)
 
#define ISCAN_OID_BUFFER_SIZE
 
#define ISCAN_OID_BUFFER_COUNT   (ISCAN_OID_BUFFER_SIZE / OR_OID_SIZE)
 
#define ISCAN_OID_BUFFER_MIN_CAPACITY   (2 * DB_PAGESIZE)
 
#define ISCAN_OID_BUFFER_CAPACITY   (MAX (ISCAN_OID_BUFFER_MIN_CAPACITY, ISCAN_OID_BUFFER_SIZE))
 
#define HFID_INITIALIZER   { VFID_INITIALIZER, NULL_PAGEID }
 
#define HFID_AS_ARGS(hfid)   (hfid)->hpgid, VFID_AS_ARGS (&(hfid)->vfid)
 
#define BTID_INITIALIZER   { VFID_INITIALIZER, NULL_PAGEID }
 
#define BTID_AS_ARGS(btid)   (btid)->root_pageid, VFID_AS_ARGS (&(btid)->vfid)
 
#define RECORD_REPLACE_DATA(record, offset_to_data, old_data_size, new_data_size, new_data)
 
#define RECORD_MOVE_DATA(rec, dest_offset, src_offset)
 
#define RECDES_INITIALIZER   { 0, -1, REC_UNKNOWN, NULL }
 
#define HFID_SET_NULL(hfid)
 
#define HFID_COPY(hfid_ptr1, hfid_ptr2)   *(hfid_ptr1) = *(hfid_ptr2)
 
#define HFID_IS_NULL(hfid)   (((hfid)->vfid.fileid == NULL_FILEID) ? 1 : 0)
 
#define BTID_SET_NULL(btid)
 
#define BTID_COPY(btid_ptr1, btid_ptr2)   *(btid_ptr1) = *(btid_ptr2)
 
#define BTID_IS_NULL(btid)   (((btid)->vfid.fileid == NULL_FILEID) ? 1 : 0)
 
#define BTID_IS_EQUAL(b1, b2)
 
#define DISK_VOLPURPOSE   DB_VOLPURPOSE
 
#define NULL_TRANID   (-1)
 
#define NULL_TRAN_INDEX   (-1)
 
#define MVCCID_NULL   (0)
 
#define MVCCID_ALL_VISIBLE   ((MVCCID) 3) /* visible for all transactions */
 
#define MVCCID_FIRST   ((MVCCID) 4)
 
#define MVCCID_IS_VALID(id)   ((id) != MVCCID_NULL)
 
#define MVCCID_IS_NORMAL(id)   ((id) >= MVCCID_FIRST)
 
#define MVCCID_IS_EQUAL(id1, id2)   ((id1) == (id2))
 
#define MVCCID_IS_NOT_ALL_VISIBLE(id)   (MVCCID_IS_VALID (id) && ((id) != MVCCID_ALL_VISIBLE))
 
#define MVCCID_FORWARD(id)
 
#define MVCCID_BACKWARD(id)
 
#define COMPOSITE_LOCK(scan_op_type)   (scan_op_type != S_SELECT)
 
#define READONLY_SCAN(scan_op_type)   (scan_op_type == S_SELECT)
 
#define LOCK_TO_LOCKMODE_STRING(lock)
 
#define LC_EXIST   1
 
#define LC_DOESNOT_EXIST   2
 
#define LC_ERROR   3
 
#define CUBRID_MAGIC_MAX_LENGTH   25
 
#define CUBRID_MAGIC_PREFIX   "CUBRID/"
 
#define CUBRID_MAGIC_DATABASE_VOLUME   "CUBRID/Volume"
 
#define CUBRID_MAGIC_LOG_ACTIVE   "CUBRID/LogActive"
 
#define CUBRID_MAGIC_LOG_ARCHIVE   "CUBRID/LogArchive"
 
#define CUBRID_MAGIC_LOG_INFO   "CUBRID/LogInfo"
 
#define CUBRID_MAGIC_DATABASE_BACKUP   "CUBRID/Backup_v2"
 
#define CUBRID_MAGIC_DATABASE_BACKUP_OLD   "CUBRID/Backup"
 
#define CUBRID_MAGIC_KEYS   "CUBRID/Keys"
 
#define IS_WRITE_EXCLUSIVE_LOCK(lock)   ((lock) == X_LOCK || (lock) == SCH_M_LOCK)
 
#define NULL_REPRID   -1 /* Null Representation Identifier */
 
#define NULL_ATTRID   -1 /* Null Attribute Identifier */
 
#define CACHE_TIME_AS_ARGS(ct)   (ct)->sec, (ct)->usec
 
#define CACHE_TIME_EQ(T1, T2)   (((T1)->sec != 0) && ((T1)->sec == (T2)->sec) && ((T1)->usec == (T2)->usec))
 
#define CACHE_TIME_RESET(T)
 
#define CACHE_TIME_MAKE(CT, TV)
 
#define OR_CACHE_TIME_SIZE   (OR_INT_SIZE * 2)
 
#define OR_PACK_CACHE_TIME(PTR, T)
 
#define OR_UNPACK_CACHE_TIME(PTR, T)
 
#define NUM_F_GENERIC_ARGS   32
 
#define NUM_F_INSERT_SUBSTRING_ARGS   4
 
#define SM_PROPERTY_UNIQUE   "*U"
 
#define SM_PROPERTY_INDEX   "*I"
 
#define SM_PROPERTY_NOT_NULL   "*N"
 
#define SM_PROPERTY_REVERSE_UNIQUE   "*RU"
 
#define SM_PROPERTY_REVERSE_INDEX   "*RI"
 
#define SM_PROPERTY_VID_KEY   "*V_KY"
 
#define SM_PROPERTY_PRIMARY_KEY   "*P"
 
#define SM_PROPERTY_FOREIGN_KEY   "*FK"
 
#define SM_PROPERTY_NUM_INDEX_FAMILY   6
 
#define SM_FILTER_INDEX_ID   "*FP*"
 
#define SM_FUNCTION_INDEX_ID   "*FI*"
 
#define SM_PREFIX_INDEX_ID   "*PLID*"
 
#define SM_MAX_IDENTIFIER_LENGTH   255
 
#define SERIAL_ATTR_NAME   "name"
 
#define SERIAL_ATTR_OWNER   "owner"
 
#define SERIAL_ATTR_CURRENT_VAL   "current_val"
 
#define SERIAL_ATTR_INCREMENT_VAL   "increment_val"
 
#define SERIAL_ATTR_MAX_VAL   "max_val"
 
#define SERIAL_ATTR_MIN_VAL   "min_val"
 
#define SERIAL_ATTR_CYCLIC   "cyclic"
 
#define SERIAL_ATTR_STARTED   "started"
 
#define SERIAL_ATTR_CLASS_NAME   "class_name"
 
#define SERIAL_ATTR_ATT_NAME   "att_name"
 
#define SERIAL_ATTR_CACHED_NUM   "cached_num"
 
#define SERIAL_ATTR_COMMENT   "comment"
 
#define SERVER_SESSION_KEY_SIZE   8
 

Typedefs

typedef INT16 VOLID
 
typedef VOLID DKNVOLS
 
typedef INT32 PAGEID
 
typedef PAGEID DKNPAGES
 
typedef INT64 LOG_PAGEID
 
typedef PAGEID LOG_PHY_PAGEID
 
typedef INT32 SECTID
 
typedef SECTID DKNSECTS
 
typedef INT16 PGSLOTID
 
typedef PGSLOTID PGNSLOTS
 
typedef INT16 PGLENGTH
 
typedef PAGEID FILEID
 
typedef INT32 LOLENGTH
 
typedef struct btree_node_split_info BTREE_NODE_SPLIT_INFO
 
typedef char * PAGE_PTR
 
typedef UINT64 MVCCID
 
typedef struct hfid HFID
 
typedef struct btid BTID
 
typedef struct ehid EHID
 
typedef struct recdes RECDES
 
typedef struct lorecdes LORECDES
 
typedef int TRANID
 
typedef struct spacedb_all SPACEDB_ALL
 
typedef struct spacedb_onevol SPACEDB_ONEVOL
 
typedef struct spacedb_files SPACEDB_FILES
 
typedef int REPR_ID
 
typedef int ATTR_ID
 
typedef struct xasl_id XASL_ID
 
typedef struct dbdef_vol_ext_info DBDEF_VOL_EXT_INFO
 

Enumerations

enum  { NULL_CHN = -1, CHN_UNKNOWN_ATCLIENT = -2 }
 
enum  PAGE_TYPE {
  PAGE_UNKNOWN = 0, PAGE_FTAB, PAGE_HEAP, PAGE_VOLHEADER,
  PAGE_VOLBITMAP, PAGE_QRESULT, PAGE_EHASH, PAGE_OVERFLOW,
  PAGE_AREA, PAGE_CATALOG, PAGE_BTREE, PAGE_LOG,
  PAGE_DROPPED_FILES, PAGE_VACUUM_DATA, PAGE_LAST = PAGE_VACUUM_DATA
}
 
enum  LOCK_COMPATIBILITY { LOCK_COMPAT_NO = 0, LOCK_COMPAT_YES, LOCK_COMPAT_UNKNOWN }
 
enum  LOCK {
  NA_LOCK = 0, INCON_NON_TWO_PHASE_LOCK = 1, NULL_LOCK = 2, SCH_S_LOCK = 3,
  IS_LOCK = 4, S_LOCK = 5, IX_LOCK = 6, BU_LOCK = 7,
  SIX_LOCK = 8, U_LOCK = 9, X_LOCK = 10, SCH_M_LOCK = 11
}
 
enum  LC_FIND_CLASSNAME {
  LC_CLASSNAME_RESERVED, LC_CLASSNAME_DELETED, LC_CLASSNAME_EXIST, LC_CLASSNAME_ERROR,
  LC_CLASSNAME_RESERVED_RENAME, LC_CLASSNAME_DELETED_RENAME
}
 
enum  EH_SEARCH { EH_KEY_FOUND, EH_KEY_NOTFOUND, EH_ERROR_OCCURRED }
 
enum  BTREE_SEARCH {
  BTREE_KEY_FOUND, BTREE_KEY_NOTFOUND, BTREE_ERROR_OCCURRED, BTREE_ACTIVE_KEY_FOUND,
  BTREE_KEY_SMALLER, BTREE_KEY_BIGGER, BTREE_KEY_BETWEEN
}
 
enum  SCAN_STATUS { S_OPENED = 1, S_STARTED, S_ENDED, S_CLOSED }
 
enum  SCAN_DIRECTION { S_FORWARD = 1, S_BACKWARD }
 
enum  SCAN_POSITION { S_BEFORE = 1, S_ON, S_AFTER }
 
enum  SCAN_CODE {
  S_ERROR = -1, S_END = 0, S_SUCCESS = 1, S_SUCCESS_CHN_UPTODATE,
  S_DOESNT_FIT, S_DOESNT_EXIST, S_SNAPSHOT_NOT_SATISFIED
}
 
enum  SCAN_OPERATION_TYPE { S_SELECT, S_SELECT_WITH_LOCK, S_DELETE, S_UPDATE }
 
enum  HEAP_RECORD_INFO_ID {
  HEAP_RECORD_INFO_INVALID = -1, HEAP_RECORD_INFO_T_PAGEID = 0, HEAP_RECORD_INFO_T_SLOTID, HEAP_RECORD_INFO_T_VOLUMEID,
  HEAP_RECORD_INFO_T_OFFSET, HEAP_RECORD_INFO_T_LENGTH, HEAP_RECORD_INFO_T_REC_TYPE, HEAP_RECORD_INFO_T_REPRID,
  HEAP_RECORD_INFO_T_CHN, HEAP_RECORD_INFO_T_MVCC_INSID, HEAP_RECORD_INFO_T_MVCC_DELID, HEAP_RECORD_INFO_T_MVCC_FLAGS,
  HEAP_RECORD_INFO_T_MVCC_PREV_VERSION, HEAP_RECORD_INFO_COUNT, HEAP_RECORD_INFO_FIRST = HEAP_RECORD_INFO_T_PAGEID
}
 
enum  HEAP_PAGE_INFO_ID {
  HEAP_PAGE_INFO_INVALID = -1, HEAP_PAGE_INFO_CLASS_OID = 0, HEAP_PAGE_INFO_PREV_PAGE, HEAP_PAGE_INFO_NEXT_PAGE,
  HEAP_PAGE_INFO_NUM_SLOTS, HEAP_PAGE_INFO_NUM_RECORDS, HEAP_PAGE_INFO_ANCHOR_TYPE, HEAP_PAGE_INFO_ALIGNMENT,
  HEAP_PAGE_INFO_TOTAL_FREE, HEAP_PAGE_INFO_CONT_FREE, HEAP_PAGE_INFO_OFFSET_TO_FREE_AREA, HEAP_PAGE_INFO_IS_SAVING,
  HEAP_PAGE_INFO_UPDATE_BEST, HEAP_PAGE_INFO_COUNT, HEAP_PAGE_INFO_FIRST = HEAP_PAGE_INFO_CLASS_OID
}
 
enum  BTREE_KEY_INFO_ID {
  BTREE_KEY_INFO_INVALID = -1, BTREE_KEY_INFO_VOLUMEID = 0, BTREE_KEY_INFO_PAGEID, BTREE_KEY_INFO_SLOTID,
  BTREE_KEY_INFO_KEY, BTREE_KEY_INFO_OID_COUNT, BTREE_KEY_INFO_FIRST_OID, BTREE_KEY_INFO_OVERFLOW_KEY,
  BTREE_KEY_INFO_OVERFLOW_OIDS, BTREE_KEY_INFO_COUNT
}
 
enum  BTREE_NODE_INFO_ID {
  BTREE_NODE_INFO_INVALID = -1, BTREE_NODE_INFO_VOLUMEID = 0, BTREE_NODE_INFO_PAGEID, BTREE_NODE_INFO_NODE_TYPE,
  BTREE_NODE_INFO_KEY_COUNT, BTREE_NODE_INFO_FIRST_KEY, BTREE_NODE_INFO_LAST_KEY, BTREE_NODE_INFO_COUNT
}
 
enum  NON_EXISTENT_HANDLING { LOG_ERROR_IF_DELETED, LOG_WARNING_IF_DELETED }
 
enum  SPACEDB_ALL_TYPE {
  SPACEDB_PERM_PERM_ALL, SPACEDB_PERM_TEMP_ALL, SPACEDB_TEMP_TEMP_ALL, SPACEDB_TOTAL_ALL,
  SPACEDB_ALL_COUNT
}
 
enum  SPACEDB_FILE_TYPE {
  SPACEDB_INDEX_FILE, SPACEDB_HEAP_FILE, SPACEDB_SYSTEM_FILE, SPACEDB_TEMP_FILE,
  SPACEDB_TOTAL_FILE, SPACEDB_FILE_COUNT
}
 
enum  BTREE_CONSTRAINT_TYPE { BTREE_CONSTRAINT_UNIQUE = 0x01, BTREE_CONSTRAINT_PRIMARY_KEY = 0x02 }
 
enum  BTREE_TYPE {
  BTREE_UNIQUE, BTREE_INDEX, BTREE_REVERSE_UNIQUE, BTREE_REVERSE_INDEX,
  BTREE_PRIMARY_KEY, BTREE_FOREIGN_KEY
}
 
enum  OPERATOR_TYPE {
  T_ADD, T_SUB, T_MUL, T_DIV,
  T_UNPLUS, T_UNMINUS, T_PRIOR, T_CONNECT_BY_ROOT,
  T_QPRIOR, T_BIT_NOT, T_BIT_AND, T_BIT_OR,
  T_BIT_XOR, T_BIT_COUNT, T_BITSHIFT_LEFT, T_BITSHIFT_RIGHT,
  T_INTDIV, T_INTMOD, T_IF, T_IFNULL,
  T_ISNULL, T_ACOS, T_ASIN, T_ATAN,
  T_ATAN2, T_COS, T_SIN, T_TAN,
  T_COT, T_PI, T_DEGREES, T_RADIANS,
  T_FORMAT, T_CONCAT, T_CONCAT_WS, T_FIELD,
  T_LEFT, T_RIGHT, T_REPEAT, T_SPACE,
  T_LOCATE, T_MID, T_STRCMP, T_REVERSE,
  T_DISK_SIZE, T_LN, T_LOG2, T_LOG10,
  T_ADDDATE, T_DATE_ADD, T_SUBDATE, T_DATE_SUB,
  T_DATE_FORMAT, T_STR_TO_DATE, T_MOD, T_POSITION,
  T_SUBSTRING, T_SUBSTRING_INDEX, T_OCTET_LENGTH, T_BIT_LENGTH,
  T_CHAR_LENGTH, T_MD5, T_LOWER, T_UPPER,
  T_LIKE_LOWER_BOUND, T_LIKE_UPPER_BOUND, T_TRIM, T_LTRIM,
  T_RTRIM, T_LPAD, T_RPAD, T_REPLACE,
  T_TRANSLATE, T_ADD_MONTHS, T_LAST_DAY, T_MONTHS_BETWEEN,
  T_SYS_DATE, T_SYS_TIME, T_SYS_TIMESTAMP, T_UTC_TIME,
  T_UTC_DATE, T_TIME_FORMAT, T_TIMESTAMP, T_UNIX_TIMESTAMP,
  T_FROM_UNIXTIME, T_SYS_DATETIME, T_YEAR, T_MONTH,
  T_DAY, T_HOUR, T_MINUTE, T_SECOND,
  T_QUARTER, T_WEEKDAY, T_DAYOFWEEK, T_DAYOFYEAR,
  T_TODAYS, T_FROMDAYS, T_TIMETOSEC, T_SECTOTIME,
  T_MAKEDATE, T_MAKETIME, T_WEEK, T_TO_CHAR,
  T_TO_DATE, T_TO_TIME, T_TO_TIMESTAMP, T_TO_DATETIME,
  T_TO_NUMBER, T_CURRENT_VALUE, T_NEXT_VALUE, T_CAST,
  T_CAST_NOFAIL, T_CAST_WRAP, T_CASE, T_EXTRACT,
  T_LOCAL_TRANSACTION_ID, T_FLOOR, T_CEIL, T_SIGN,
  T_POWER, T_ROUND, T_LOG, T_EXP,
  T_SQRT, T_TRUNC, T_ABS, T_CHR,
  T_INSTR, T_LEAST, T_GREATEST, T_STRCAT,
  T_NULLIF, T_COALESCE, T_NVL, T_NVL2,
  T_DECODE, T_RAND, T_DRAND, T_RANDOM,
  T_DRANDOM, T_INCR, T_DECR, T_SYS_CONNECT_BY_PATH,
  T_DATE, T_TIME, T_DATEDIFF, T_TIMEDIFF,
  T_ROW_COUNT, T_LAST_INSERT_ID, T_DEFAULT, T_LIST_DBS,
  T_BIT_TO_BLOB, T_BLOB_TO_BIT, T_CHAR_TO_CLOB, T_CLOB_TO_CHAR,
  T_LOB_LENGTH, T_TYPEOF, T_INDEX_CARDINALITY, T_EVALUATE_VARIABLE,
  T_DEFINE_VARIABLE, T_PREDICATE, T_EXEC_STATS, T_ADDTIME,
  T_BIN, T_FINDINSET, T_HEX, T_ASCII,
  T_CONV, T_INET_ATON, T_INET_NTOA, T_TO_ENUMERATION_VALUE,
  T_CHARSET, T_COLLATION, T_WIDTH_BUCKET, T_TRACE_STATS,
  T_AES_ENCRYPT, T_AES_DECRYPT, T_SHA_ONE, T_SHA_TWO,
  T_INDEX_PREFIX, T_TO_BASE64, T_FROM_BASE64, T_SYS_GUID,
  T_SLEEP, T_DBTIMEZONE, T_SESSIONTIMEZONE, T_TZ_OFFSET,
  T_NEW_TIME, T_FROM_TZ, T_TO_DATETIME_TZ, T_TO_TIMESTAMP_TZ,
  T_UTC_TIMESTAMP, T_CRC32, T_CURRENT_DATETIME, T_CURRENT_TIMESTAMP,
  T_CURRENT_DATE, T_CURRENT_TIME, T_CONV_TZ
}
 
enum  FUNC_TYPE {
  PT_MIN = 900, PT_MAX, PT_SUM, PT_AVG,
  PT_STDDEV, PT_VARIANCE, PT_STDDEV_POP, PT_VAR_POP,
  PT_STDDEV_SAMP, PT_VAR_SAMP, PT_COUNT, PT_COUNT_STAR,
  PT_GROUPBY_NUM, PT_AGG_BIT_AND, PT_AGG_BIT_OR, PT_AGG_BIT_XOR,
  PT_GROUP_CONCAT, PT_ROW_NUMBER, PT_RANK, PT_DENSE_RANK,
  PT_NTILE, PT_JSON_ARRAYAGG, PT_JSON_OBJECTAGG, PT_TOP_AGG_FUNC,
  PT_LEAD, PT_LAG, PT_GENERIC, F_TABLE_SET,
  F_TABLE_MULTISET, F_TABLE_SEQUENCE, F_TOP_TABLE_FUNC, F_MIDXKEY,
  F_SET, F_MULTISET, F_SEQUENCE, F_VID,
  F_GENERIC, F_CLASS_OF, F_INSERT_SUBSTRING, F_ELT,
  F_JSON_OBJECT, F_JSON_ARRAY, F_JSON_MERGE, F_JSON_MERGE_PATCH,
  F_JSON_INSERT, F_JSON_REMOVE, F_JSON_ARRAY_APPEND, F_JSON_GET_ALL_PATHS,
  F_JSON_REPLACE, F_JSON_SET, F_JSON_KEYS, F_JSON_ARRAY_INSERT,
  F_JSON_SEARCH, F_JSON_CONTAINS_PATH, F_JSON_EXTRACT, F_JSON_CONTAINS,
  F_JSON_DEPTH, F_JSON_LENGTH, F_JSON_PRETTY, F_JSON_QUOTE,
  F_JSON_TYPE, F_JSON_UNQUOTE, F_JSON_VALID, F_REGEXP_COUNT,
  F_REGEXP_INSTR, F_REGEXP_LIKE, F_REGEXP_REPLACE, F_REGEXP_SUBSTR,
  F_BENCHMARK, PT_FIRST_VALUE, PT_LAST_VALUE, PT_NTH_VALUE,
  PT_MEDIAN, PT_CUME_DIST, PT_PERCENT_RANK, PT_PERCENTILE_CONT,
  PT_PERCENTILE_DISC
}
 
enum  QUERY_OPTIONS { Q_DISTINCT, Q_ALL }
 
enum  RANGE_TYPE { R_KEY = 1, R_RANGE, R_KEYLIST, R_RANGELIST }
 
enum  SHOWSTMT_TYPE {
  SHOWSTMT_START = 0, SHOWSTMT_NULL = SHOWSTMT_START, SHOWSTMT_ACCESS_STATUS, SHOWSTMT_VOLUME_HEADER,
  SHOWSTMT_ACTIVE_LOG_HEADER, SHOWSTMT_ARCHIVE_LOG_HEADER, SHOWSTMT_SLOTTED_PAGE_HEADER, SHOWSTMT_SLOTTED_PAGE_SLOTS,
  SHOWSTMT_HEAP_HEADER, SHOWSTMT_ALL_HEAP_HEADER, SHOWSTMT_HEAP_CAPACITY, SHOWSTMT_ALL_HEAP_CAPACITY,
  SHOWSTMT_INDEX_HEADER, SHOWSTMT_INDEX_CAPACITY, SHOWSTMT_ALL_INDEXES_HEADER, SHOWSTMT_ALL_INDEXES_CAPACITY,
  SHOWSTMT_GLOBAL_CRITICAL_SECTIONS, SHOWSTMT_JOB_QUEUES, SHOWSTMT_TIMEZONES, SHOWSTMT_FULL_TIMEZONES,
  SHOWSTMT_TRAN_TABLES, SHOWSTMT_THREADS, SHOWSTMT_PAGE_BUFFER_STATUS, SHOWSTMT_END
}
 
enum  SM_ATTRIBUTE_FLAG {
  SM_ATTFLAG_NONE = 0, SM_ATTFLAG_INDEX = 1, SM_ATTFLAG_UNIQUE = 2, SM_ATTFLAG_NON_NULL = 4,
  SM_ATTFLAG_VID = 8, SM_ATTFLAG_NEW = 16, SM_ATTFLAG_REVERSE_INDEX = 32, SM_ATTFLAG_REVERSE_UNIQUE = 64,
  SM_ATTFLAG_PRIMARY_KEY = 128, SM_ATTFLAG_AUTO_INCREMENT = 256, SM_ATTFLAG_FOREIGN_KEY = 512, SM_ATTFLAG_PARTITION_KEY = 1024
}
 
enum  SM_FOREIGN_KEY_ACTION { SM_FOREIGN_KEY_CASCADE, SM_FOREIGN_KEY_RESTRICT, SM_FOREIGN_KEY_NO_ACTION, SM_FOREIGN_KEY_SET_NULL }
 
enum  SM_NAME_SPACE {
  ID_ATTRIBUTE, ID_SHARED_ATTRIBUTE, ID_CLASS_ATTRIBUTE, ID_METHOD,
  ID_CLASS_METHOD, ID_INSTANCE, ID_CLASS, ID_NULL
}
 
enum  {
  REC_UNKNOWN = 0, REC_ASSIGN_ADDRESS = 1, REC_HOME = 2, REC_NEWHOME = 3,
  REC_RELOCATION = 4, REC_BIGONE = 5, REC_MARKDELETED = 6, REC_DELETED_WILL_REUSE = 7,
  REC_RESERVED_TYPE_8 = 8, REC_RESERVED_TYPE_9 = 9, REC_RESERVED_TYPE_10 = 10, REC_RESERVED_TYPE_11 = 11,
  REC_RESERVED_TYPE_12 = 12, REC_RESERVED_TYPE_13 = 13, REC_RESERVED_TYPE_14 = 14, REC_RESERVED_TYPE_15 = 15,
  REC_4BIT_USED_TYPE_MAX = REC_DELETED_WILL_REUSE, REC_4BIT_TYPE_MAX = REC_RESERVED_TYPE_15
}
 
enum  DB_PARTITION_TYPE { DB_PARTITION_HASH = 0, DB_PARTITION_RANGE, DB_PARTITION_LIST }
 
enum  DB_CLASS_PARTITION_TYPE { DB_NOT_PARTITIONED_CLASS = 0, DB_PARTITIONED_CLASS = 1, DB_PARTITION_CLASS = 2 }
 
enum  KILLSTMT_TYPE { KILLSTMT_TRAN = 0, KILLSTMT_QUERY = 1 }
 
enum  AGGREGATE_HASH_STATE { HS_NONE = 0, HS_ACCEPT_ALL, HS_REJECT_ALL }
 

Functions

INT16 db_page_size (void)
 
INT16 db_io_page_size (void)
 
INT16 db_log_page_size (void)
 
int db_set_page_size (INT16 io_page_size, INT16 log_page_size)
 
INT16 db_network_page_size (void)
 
void db_print_data (DB_TYPE type, DB_DATA *data, FILE *fd)
 
int recdes_allocate_data_area (RECDES *rec, int size)
 
void recdes_free_data_area (RECDES *rec)
 
void recdes_set_data_area (RECDES *rec, char *data, int size)
 
char * oid_to_string (char *buf, int buf_size, OID *oid)
 
char * vpid_to_string (char *buf, int buf_size, VPID *vpid)
 
char * vfid_to_string (char *buf, int buf_size, VFID *vfid)
 
char * hfid_to_string (char *buf, int buf_size, HFID *hfid)
 
char * btid_to_string (char *buf, int buf_size, BTID *btid)
 
const char * fcode_get_lowercase_name (FUNC_TYPE ftype)
 
const char * fcode_get_uppercase_name (FUNC_TYPE ftype)
 

Variables

LOCK lock_Conv [12][12]
 
const int SM_MAX_STRING_LENGTH
 
static const bool PEEK = true
 
static const bool COPY = false
 

Macro Definition Documentation

#define BTID_INITIALIZER   { VFID_INITIALIZER, NULL_PAGEID }

Definition at line 204 of file storage_common.h.

Referenced by logtb_complete_mvcc(), and xbtree_load_index().

#define CACHE_TIME_AS_ARGS (   ct)    (ct)->sec, (ct)->usec

Definition at line 958 of file storage_common.h.

#define CACHE_TIME_EQ (   T1,
  T2 
)    (((T1)->sec != 0) && ((T1)->sec == (T2)->sec) && ((T1)->usec == (T2)->usec))

Definition at line 960 of file storage_common.h.

#define CACHE_TIME_MAKE (   CT,
  TV 
)
Value:
do \
{ \
(CT)->sec = (TV)->tv_sec; \
(CT)->usec = (TV)->tv_usec; \
} \
while (0)
while(1)
Definition: cnvlex.c:816

Definition at line 971 of file storage_common.h.

#define CACHE_TIME_RESET (   T)
Value:
do \
{ \
(T)->sec = 0; \
(T)->usec = 0; \
} \
while (0)
while(1)
Definition: cnvlex.c:816

Definition at line 963 of file storage_common.h.

#define COMPOSITE_LOCK (   scan_op_type)    (scan_op_type != S_SELECT)
#define CUBRID_MAGIC_DATABASE_BACKUP   "CUBRID/Backup_v2"

Definition at line 444 of file storage_common.h.

Referenced by fileio_continue_restore(), and fileio_start_backup().

#define CUBRID_MAGIC_DATABASE_BACKUP_OLD   "CUBRID/Backup"

Definition at line 445 of file storage_common.h.

Referenced by fileio_continue_restore().

#define CUBRID_MAGIC_DATABASE_VOLUME   "CUBRID/Volume"
#define CUBRID_MAGIC_KEYS   "CUBRID/Keys"

Definition at line 446 of file storage_common.h.

Referenced by tde_create_keys_file(), and tde_validate_keys_file().

#define CUBRID_MAGIC_LOG_ACTIVE   "CUBRID/LogActive"
#define CUBRID_MAGIC_LOG_ARCHIVE   "CUBRID/LogArchive"
#define CUBRID_MAGIC_LOG_INFO   "CUBRID/LogInfo"

Definition at line 443 of file storage_common.h.

Referenced by la_insert_ha_apply_info(), and logpb_create_log_info().

#define CUBRID_MAGIC_PREFIX   "CUBRID/"

Definition at line 439 of file storage_common.h.

#define DB_PAGESIZE   (db_page_size())

Definition at line 97 of file storage_common.h.

Referenced by btree_build_nleafs(), btree_check_valid_record(), btree_compress_node(), btree_delete_key_from_leaf(), btree_dump_leaf_record(), btree_find_AR_sampling_leaf(), btree_get_num_visible_oids_from_all_ovf(), btree_get_subtree_capacity(), btree_init_node_header(), btree_init_overflow_header(), btree_init_root_header(), btree_is_fence_key(), btree_key_append_object_to_overflow(), btree_key_delete_remove_object(), btree_key_find_and_insert_delete_mvccid(), btree_key_find_first_visible_row_from_all_ovf(), btree_key_insert_delete_mvccid(), btree_key_insert_new_key(), btree_key_insert_new_object(), btree_key_remove_delete_mvccid(), btree_key_remove_insert_mvccid(), btree_key_remove_object_and_keep_visible_first(), btree_log_page(), btree_merge_node(), btree_merge_node_and_advance(), btree_node_mergeable(), btree_node_size_uncompressed(), btree_overflow_remove_object(), btree_replace_first_oid_with_ovfl_oid(), btree_rv_noderec_dump(), btree_rv_record_modify_internal(), btree_rv_undoredo_copy_page(), btree_split_node(), btree_split_root(), btree_split_test(), btree_start_overflow_page(), catalog_add_class_info(), catalog_add_representation(), catalog_drop_all(), catalog_drop_all_representation_and_class(), catalog_drop_old_representations(), catalog_drop_representation_helper(), catalog_drop_representation_item(), catalog_file_map_find_optimal_page(), catalog_put_record_into_page(), catalog_put_representation_item(), check_hash_list_scan(), compactdb(), cursor_allocate_oid_buffer(), disk_check(), disk_format(), disk_init(), disk_rv_redo_init_map(), disk_stab_init(), disk_update_instance(), disk_vhdr_set_vol_remarks(), ehash_check_merge_possible(), ehash_connect_bucket(), ehash_create_helper(), ehash_delete(), ehash_dump(), ehash_expand_directory(), ehash_merge(), ehash_merge_permanent(), ehash_shrink_directory(), ehash_split_bucket(), eval_sub_sort_list_to_multi_set(), eval_sub_sort_list_to_sort_list(), file_create(), file_extdata_merge_pages(), file_log_extdata_set_next(), file_numerable_add_page(), file_perm_dealloc(), file_rv_extdata_add(), file_rv_extdata_merge(), file_rv_extdata_remove(), file_rv_extdata_set_next(), file_rv_partsect_update(), file_table_append_full_sector_page(), file_temp_alloc(), file_tracker_dump_all_heap_capacities(), file_tracker_init_page(), fileio_synchronize_all(), heap_attrinfo_transform_to_disk_internal(), heap_create_internal(), heap_delete_logical(), heap_dump_capacity(), heap_get_last_version(), heap_get_record_data_when_all_ready(), heap_get_visible_version_internal(), heap_reuse(), heap_rv_mvcc_redo_delete_internal(), heap_rv_mvcc_undo_delete(), heap_scancache_block_allocate(), heap_stats_find_best_page(), heap_update_logical(), heap_update_relocation(), heap_vpid_alloc(), locator_allocate_copy_area_by_attr_info(), locator_class_to_disk(), locator_get_object(), locator_lock_and_get_object(), locator_lock_and_get_object_with_evaluation(), locator_mem_to_disk(), locator_mflush_initialize(), locator_multi_insert_force(), log_rv_copy_char(), log_rv_record_modify_internal(), net_client_request_with_callback(), overflow_get_capacity(), overflow_get_nbytes(), overflow_insert(), overflow_update(), pgbuf_check_bcb_page_vpid(), pgbuf_copy_from_area(), pgbuf_copy_to_area(), pgbuf_rv_new_page_redo(), pgbuf_unfix_all(), qdata_copy_valptr_list_to_tuple(), qexec_end_buildvalueblock_iterations(), qexec_end_one_iteration(), qexec_gby_finalize_group(), qexec_initialize_analytic_function_state(), qexec_initialize_groupby_state(), qexec_insert_tuple_into_list(), qexec_merge_list(), qexec_merge_list_outer(), qfile_add_tuple_to_list(), qfile_add_tuple_to_list_id(), qfile_copy_list_pages(), qfile_generate_tuple_into_list(), qfile_get_estimated_pages_for_sorting(), qfile_get_first_page(), qfile_is_last_page_full(), qmgr_allocate_tempfile_with_buffer(), qmgr_create_new_temp_file(), qmgr_get_page_type(), qo_estimate_statistics(), sort_exphase_merge(), sort_exphase_merge_elim_dup(), sort_inphase_sort(), sort_listfile(), sort_read_area(), sort_spage_compact(), sort_spage_find_free(), sort_spage_get_record(), sort_spage_initialize(), sort_write_area(), sqmgr_execute_query(), sqmgr_prepare_and_execute_query(), vacuum_add_dropped_file(), vacuum_cleanup_dropped_files(), vacuum_data_initialize_new_page(), vacuum_initialize(), vacuum_load_dropped_files_from_disk(), vacuum_rv_check_at_undo(), xbtree_load_index(), xlocator_fetch(), xlocator_fetch_all(), xlocator_fetch_lockhint_classes(), xlocator_fetch_lockset(), xlocator_lock_and_fetch_all(), xlocator_notify_isolation_incons(), xlocator_remove_class_from_index(), and xqfile_get_list_file_page().

#define DB_SECTORSIZE   (DISK_SECTOR_NPAGES * DB_PAGESIZE)

Definition at line 107 of file storage_common.h.

Referenced by file_create(), and file_perm_expand().

#define DISK_VFID_ALIGNED_SIZE   (DISK_VFID_SIZE + OR_SHORT_SIZE)

Definition at line 124 of file storage_common.h.

#define DISK_VFID_SIZE   (OR_INT_SIZE + OR_SHORT_SIZE)

Definition at line 121 of file storage_common.h.

#define HFID_IS_NULL (   hfid)    (((hfid)->vfid.fileid == NULL_FILEID) ? 1 : 0)

Definition at line 298 of file storage_common.h.

Referenced by allocate_index(), boot_compact_db(), boot_find_root_heap(), btree_sort_get_next(), catalog_check_consistency(), catalog_dump(), catalog_update(), catcls_get_apply_info_log_record_time(), catcls_get_db_collation(), catcls_get_server_compat_info(), check_fk_validity(), css_make_access_status_exist_user(), db_get_class_num_objs_and_pages(), disk_get_boot_hfid(), disk_to_class(), disk_update_instance(), do_alter_one_clause_with_template(), do_reclaim_class_addresses(), extract_objects(), grok_classes(), heap_cache_class_info(), heap_compact_pages(), heap_create_internal(), heap_delete_logical(), heap_get_record_location(), heap_init_get_context(), heap_insert_logical(), heap_mark_class_as_modified(), heap_next_internal(), heap_remove_page_on_vacuum(), heap_reuse(), heap_rv_postpone_append_pages_to_heap(), heap_update_logical(), locator_check_all_entries_of_all_btrees(), locator_check_by_class_oid(), locator_check_class_names(), locator_create_heap_if_needed(), locator_initialize(), locator_mflush(), locator_prefetch_index_page_internal(), or_get_hierarchy_helper(), pgbuf_attach_watcher_debug(), pgbuf_get_groupid_and_unfix(), put_class_attributes(), qexec_execute_increment(), redistribute_partition_data(), rem_class_from_index(), sm_truncate_using_delete(), tde_get_keyinfo(), tde_update_keyinfo(), vacuum_heap_get_hfid_and_file_type(), vacuum_heap_page(), vacuum_heap_page_log_and_reset(), vacuum_heap_prepare_record(), vacuum_heap_record(), xboot_checkdb_table(), xboot_initialize_server(), xboot_register_client(), xbtree_load_index(), xcache_check_recompilation_threshold(), xheap_get_class_num_objects_pages(), xstats_get_statistics_from_server(), and xstats_update_all_statistics().

#define IO_MAX_PAGE_SIZE   (16 * ONE_K)

Definition at line 93 of file storage_common.h.

Referenced by btree_build_nleafs(), btree_compress_node(), btree_construct_leafs(), btree_delete_key_from_leaf(), btree_delete_meta_record(), btree_dump_leaf_record(), btree_fix_ovfl_oid_page(), btree_get_num_visible_oids_from_all_ovf(), btree_init_node_header(), btree_init_overflow_header(), btree_init_root_header(), btree_insert_mvcc_delid_into_page(), btree_key_append_object_to_overflow(), btree_key_delete_remove_object(), btree_key_find_and_insert_delete_mvccid(), btree_key_find_first_visible_row_from_all_ovf(), btree_key_insert_delete_mvccid(), btree_key_insert_new_key(), btree_key_insert_new_object(), btree_key_lock_and_append_object_unique(), btree_key_online_index_IB_insert(), btree_key_online_index_tran_delete(), btree_key_online_index_tran_insert(), btree_key_online_index_tran_insert_DF(), btree_key_remove_delete_mvccid(), btree_key_remove_insert_mvccid(), btree_key_remove_object_and_keep_visible_first(), btree_merge_node(), btree_merge_root(), btree_overflow_remove_object(), btree_replace_first_oid_with_ovfl_oid(), btree_rv_record_modify_internal(), btree_split_node(), btree_split_root(), btree_split_test(), btree_start_overflow_page(), check_and_fix_compat_level(), db_init(), disk_can_overwrite_data_volume(), dwb_check_data_page_is_sane(), dwb_debug_check_dwb(), dwb_flush_force(), find_valid_page_size(), fix_codeset_in_active_log(), fix_volume_header(), heap_get_visible_version_from_log(), heap_rv_mvcc_redo_delete_internal(), heap_rv_mvcc_undo_delete(), heap_update_relocation(), heap_vacuum_all_objects(), la_find_log_pagesize(), la_init_recdes_pool(), log_2pc_recovery_analysis_info(), log_active_log_header_start_scan(), log_archive_log_header_start_scan(), log_create_internal(), log_do_postpone(), log_find_end_log(), log_get_next_nested_top(), log_get_savepoint_lsa(), log_get_undo_record(), log_is_page_of_record_broken(), log_recovery_abort_atomic_sysop(), log_recovery_abort_interrupted_sysop(), log_recovery_analysis(), log_recovery_find_first_postpone(), log_recovery_finish_sysop_postpone(), log_recovery_redo(), log_recovery_resetlog(), log_recovery_undo(), log_rollback(), log_rv_analysis_end_checkpoint(), log_rv_record_modify_internal(), log_startof_nxrec(), logpb_archive_active_log(), logpb_background_archiving(), logpb_compute_page_checksum(), logpb_delete(), logpb_fetch_from_archive(), logpb_find_header_parameters(), logpb_find_oldest_available_page_id(), logpb_initialize_pool(), logpb_peek_header_of_active_log_from_backup(), logpb_read_page_from_active_log(), logpb_remove_all_in_log_path(), logpb_write_page_to_disk(), logpb_write_toflush_pages_to_archive(), logpb_writev_append_pages(), logwr_check_page_checksum(), make_valid_page_size(), pgbuf_bcb_flush_with_wal(), sqfile_get_list_file_page(), sqmgr_execute_query(), sqmgr_prepare_and_execute_query(), undo_fix_compat_level(), vacuum_process_log_block(), vacuum_recover_lost_block_data(), vacuum_rv_check_at_undo(), vacuum_rv_redo_vacuum_heap_page(), xlog_dump(), and xqfile_get_list_file_page().

#define IO_MIN_PAGE_SIZE   (4 * ONE_K)
#define IO_PAGESIZE   (db_io_page_size())

Definition at line 96 of file storage_common.h.

Referenced by addvoldb(), createdb(), disk_add_volume(), disk_format(), disk_rv_redo_dboutside_newvol(), dwb_add_page(), dwb_check_data_page_is_sane(), dwb_create_blocks(), dwb_create_internal(), dwb_debug_check_dwb(), dwb_flush_block(), dwb_flush_force(), dwb_load_and_recover_pages(), dwb_read_page(), dwb_set_slot_data(), dwb_slots_hash_insert(), dwb_write_block(), file_tracker_dump_all_heap_capacities(), fileio_backup_volume(), fileio_continue_restore(), fileio_copy_volume(), fileio_create_backup_volume(), fileio_expand_to(), fileio_fill_hole_during_restore(), fileio_flush_backup(), fileio_get_number_of_partition_free_pages(), fileio_initialize_backup(), fileio_initialize_pages(), fileio_is_formatted_page(), fileio_list_restore(), fileio_page_check_corruption(), fileio_read_restore(), fileio_read_restore_header(), fileio_reset_volume(), fileio_restore_volume(), fileio_start_backup(), fileio_synchronize_all(), fileio_write_backup_header(), fileio_write_restore(), fix_volume_header(), heap_dump_capacity(), locator_free_packed(), log_append_get_data_ptr(), log_append_get_zip_redo(), log_append_get_zip_undo(), log_append_init_zip(), log_append_realloc_data_ptr(), log_get_io_page_size(), log_get_num_pages_for_creation(), log_get_undo_record(), log_initialize_internal(), log_rollback(), logpb_delete(), logpb_find_header_parameters(), logpb_initialize_header(), logpb_restore(), pgbuf_bcb_flush_with_wal(), pgbuf_check_bcb_page_vpid(), pgbuf_claim_bcb_for_fix(), pgbuf_flush_all_helper(), pgbuf_initialize_bcb_table(), pgbuf_reset_temp_lsa(), pgbuf_set_lsa(), pgbuf_set_lsa_as_temporary(), planner_nodeset_join_cost(), prm_io_pages_to_size(), prm_size_to_io_pages(), qexec_setup_topn_proc(), qo_add_node(), qo_nljoin_cost(), qo_sort_cost(), scan_init_indx_coverage(), spacedb(), spacedb_get_size_str(), vacuum_worker_allocate_resources(), xboot_register_client(), and xlog_dump().

#define IO_SECTORSIZE   (DISK_SECTOR_NPAGES * IO_PAGESIZE)
#define IS_POWER_OF_2 (   x)    (((x) & ((x) - 1)) == 0)
#define IS_WRITE_EXCLUSIVE_LOCK (   lock)    ((lock) == X_LOCK || (lock) == SCH_M_LOCK)
#define ISCAN_OID_BUFFER_COUNT   (ISCAN_OID_BUFFER_SIZE / OR_OID_SIZE)

Definition at line 169 of file storage_common.h.

Referenced by scan_open_index_scan().

#define ISCAN_OID_BUFFER_MIN_CAPACITY   (2 * DB_PAGESIZE)

Definition at line 175 of file storage_common.h.

#define ISCAN_OID_BUFFER_SIZE
Value:
#define IO_PAGESIZE
float prm_get_float_value(PARAM_ID prm_id)

Definition at line 165 of file storage_common.h.

Referenced by locator_check_btree_entries(), and locator_check_unique_btree_entries().

#define LC_EXIST   1
#define LEAF_RECORD_SIZE   (0)

Definition at line 132 of file storage_common.h.

#define LOCK_TO_LOCKMODE_STRING (   lock)
Value:
(((lock) == NULL_LOCK) ? " NULL_LOCK" : \
((lock) == IS_LOCK) ? " IS_LOCK" : \
((lock) == S_LOCK) ? " S_LOCK" : \
((lock) == IX_LOCK) ? " IX_LOCK" : \
((lock) == SIX_LOCK) ? " SIX_LOCK" : \
((lock) == U_LOCK) ? " U_LOCK" : \
((lock) == BU_LOCK) ? " BU_LOCK" : \
((lock) == SCH_S_LOCK) ? " SCH_S_LOCK" : \
((lock) == SCH_M_LOCK) ? " SCH_M_LOCK" : \
((lock) == X_LOCK) ? " X_LOCK" : "UNKNOWN")

Definition at line 386 of file storage_common.h.

Referenced by locator_free_lockhint(), locator_free_lockset(), lock_demote_class_lock(), lock_dump_acquired(), lock_wait_state_to_string(), qdump_print_xasl(), showstmt_array_end_scan(), and xcache_dump().

#define LOGPAGEID_MAX   0x7fffffffffffLL /* 6 bytes length */
#define MVCCID_BACKWARD (   id)
Value:
do \
{ \
(id)--; \
} \
#define MVCCID_FIRST
while(1)
Definition: cnvlex.c:816

Definition at line 349 of file storage_common.h.

#define MVCCID_FORWARD (   id)
#define MVCCID_IS_EQUAL (   id1,
  id2 
)    ((id1) == (id2))

Definition at line 333 of file storage_common.h.

#define MVCCID_IS_NOT_ALL_VISIBLE (   id)    (MVCCID_IS_VALID (id) && ((id) != MVCCID_ALL_VISIBLE))

Definition at line 335 of file storage_common.h.

Referenced by btree_rv_save_keyval_for_undo().

#define MVCCID_NULL   (0)

Definition at line 323 of file storage_common.h.

Referenced by btree_build_nleafs(), btree_check_valid_record(), btree_construct_leafs(), btree_leaf_change_first_object(), btree_leaf_record_handle_first_overflow(), btree_mvcc_info_from_heap_mvcc_header(), btree_mvcc_info_to_heap_mvcc_header(), BTREE_MVCC_SET_HEADER_FIXED_SIZE(), btree_record_remove_delid(), btree_rv_keyval_undo_insert_mvcc_delid(), btree_rv_keyval_undo_insert_unique(), btree_rv_read_keybuf_nocopy(), btree_sort_get_next(), btree_unpack_mvccinfo(), catcls_put_or_value_into_buffer(), mvcctable::complete_mvcc(), mvcctable::compute_oldest_visible_mvccid(), desc_obj_to_disk(), heap_alloc_new_page(), heap_page_get_max_mvccid(), heap_reuse(), heap_rv_mvcc_undo_delete_overflow(), heap_rv_redo_reuse_page(), heap_rv_redo_reuse_page_reuse_oid(), heap_set_mvcc_rec_header_on_overflow(), heap_vpid_alloc(), locator_update_index(), log_active_log_header_next_scan(), log_header::log_header(), log_recovery_redo(), log_recovery_undo(), log_rollback(), logpb_vacuum_reset_log_header_cache(), logtb_clear_tdes(), logtb_complete_mvcc(), logtb_find_current_mvccid(), mvcc_is_active_id(), mvcc_satisfies_dirty(), oldest_active_get(), or_get_mvccid(), or_mvcc_get_delid(), prior_lsa_next_record_internal(), redistribute_partition_data(), mvcc_active_tran::reset(), mvcc_snapshot::reset(), mvcc_info::reset(), mvcctable::reset_transaction_lowest_active(), test_mvcc_get_oldest(), test_new_mvcc_complete(), tf_mem_to_disk(), vacuum_add_dropped_file(), vacuum_consume_buffer_log_blocks(), vacuum_data_load_and_recover(), vacuum_produce_log_block_data(), vacuum_recover_lost_block_data(), vacuum_rv_redo_vacuum_complete(), and xbtree_add_index().

#define NON_LEAF_RECORD_SIZE   (DISK_VPID_ALIGNED_SIZE)

Definition at line 130 of file storage_common.h.

Referenced by btree_delete_overflow_key().

#define NULL_ATTRID   -1 /* Null Attribute Identifier */

Definition at line 641 of file storage_common.h.

#define NULL_PAGEID   (-1) /* Value of an invalid page identifier */

Definition at line 47 of file storage_common.h.

Referenced by attribute_to_disk(), btree_delete_meta_record(), btree_dump_leaf_record(), btree_fix_ovfl_oid_pages_by_btid(), btree_get_next_key_info(), btree_split_node(), btree_split_root(), btree_split_test(), btree_verify_leaf_node(), btree_verify_node(), catalog_check_consistency(), catalog_drop(), catalog_drop_old_representations(), catalog_drop_representation_helper(), catalog_dump(), catalog_file_map_find_optimal_page(), catalog_file_map_overflow_count(), catalog_find_optimal_page(), catalog_get_record_from_page(), catalog_get_representation(), catalog_initialize_max_space(), catcls_insert_catalog_classes(), catcls_update_subset(), classobj_put_index(), copylogdb(), cursor_close(), cursor_construct_tuple_from_overflow_pages(), cursor_fetch_page_having_tuple(), cursor_get_list_file_page(), cursor_next_tuple(), cursor_prev_tuple(), db_value_domain_default(), db_value_domain_min(), disk_format(), disk_stab_cursor_check_valid(), dwb_flush_block(), dwb_flush_force(), dwb_set_slot_data(), ehash_delete(), ehash_extend_bucket(), ehash_insert_to_bucket_after_create(), ehash_merge(), ehash_rv_delete(), ehash_search(), fileio_initialize_backup(), heap_attrinfo_check(), heap_cache_class_info(), heap_create_internal(), heap_get_visible_version_from_log(), heap_hfid_cache_get(), heap_hfid_table_entry_init(), heap_insert_physical(), heap_next_internal(), heap_stats_sync_bestspace(), heap_update_logical(), la_apply_insert_log(), la_apply_log_file(), la_apply_repl_log(), la_apply_update_log(), la_decache_page_buffers(), la_get_page(), la_log_fetch(), la_log_record_process(), locator_check_all_entries_of_all_btrees(), locator_check_btree_entries(), locator_check_class_names(), locator_check_unique_btree_entries(), locator_delete_force_internal(), locator_insert_force(), locator_update_force(), log_append_compensate_internal(), log_append_donetime_internal(), log_change_tran_as_completed(), log_do_postpone(), log_get_next_nested_top(), log_initialize_internal(), log_recovery_analysis(), log_recovery_find_first_postpone(), log_recovery_finish_sysop_postpone(), log_recovery_redo(), log_rv_analysis_complete(), log_rv_analysis_end_checkpoint(), log_sysop_end_logical_undo(), logpb_archive_active_log(), logpb_background_archiving(), logpb_backup(), logpb_checkpoint(), logpb_copy_page(), logpb_copy_page_from_file(), logpb_copy_page_from_log_buffer(), logpb_dump_information(), logpb_dump_pages(), logpb_fetch_from_archive(), logpb_fetch_page(), logpb_find_oldest_available_page_id(), logpb_flush_all_append_pages(), logpb_flush_page(), logpb_initialize_log_buffer(), logpb_invalidate_pool(), logpb_is_any_dirty(), logpb_locate_page(), logpb_read_page_from_active_log(), logpb_read_page_from_file(), logpb_remove_archive_logs(), logpb_remove_archive_logs_exceed_limit(), logtb_find_smallest_and_largest_active_pages(), logwr_get_log_pages(), logwr_log_ha_filestat_to_string(), prior_lsa_gen_postpone_record(), prior_lsa_gen_undoredo_record_from_crumbs(), qexec_analytic_put_next(), qexec_clear_analytic_state(), qexec_execute_analytic(), qexec_gby_put_next(), qexec_hash_gby_put_next(), qexec_initialize_analytic_state(), qexec_ordby_put_next(), qfile_get_tuple(), qfile_has_next_page(), qfile_initialize_page_header(), qfile_open_list_scan(), qfile_overwrite_tuple(), qfile_put_next_sort_item(), qfile_retrieve_tuple(), qfile_scan_next(), qfile_scan_prev(), qfile_set_tuple_column_value(), qmgr_create_new_temp_file(), qmgr_get_new_page(), qmgr_setup_empty_list_file(), regu_init(), regu_spec_target_init(), spage_save_head_init(), sqfile_get_list_file_page(), sqmgr_execute_query(), sqmgr_prepare_and_execute_query(), swizzle_value(), vacuum_get_log_blockid(), vacuum_initialize(), vacuum_min_log_pageid_to_keep(), vacuum_process_log_block(), vacuum_recover_lost_block_data(), xbtree_add_index(), xbtree_delete_index(), xbtree_load_index(), xcatalog_check_rep_dir(), xlocator_fetch_all(), xlocator_lock_and_fetch_all(), xlocator_remove_class_from_index(), xlog_dump(), xqfile_get_list_file_page(), xstats_update_all_statistics(), and xvacuum_dump().

#define NULL_REPRID   -1 /* Null Representation Identifier */

Definition at line 640 of file storage_common.h.

Referenced by btree_check_by_class_oid(), btree_check_foreign_key(), btree_get_pkey_btid(), btree_index_next_scan(), btree_index_start_scan(), btree_is_btid_online_index(), btree_load_check_fk(), btree_repair_prev_link_by_class_oid(), catalog_add_class_info(), catalog_add_representation(), catalog_check_class_consistency(), catalog_drop_all(), catalog_drop_old_representations(), catalog_dump(), catalog_get_cardinality(), catalog_get_class_info(), catalog_get_last_representation_id(), catalog_get_rep_dir(), catalog_get_representation(), catalog_get_representation_directory(), catalog_insert(), catalog_update(), catalog_update_class_info(), compactdb_start(), heap_attrinfo_end(), heap_attrinfo_recache(), heap_attrinfo_start(), heap_attrinfo_start_refoids(), heap_attrinfo_start_with_btid(), heap_attrinfo_start_with_index(), heap_classrepr_entry_reset(), heap_classrepr_get(), heap_classrepr_get_from_record(), heap_classrepr_initialize_cache(), heap_get_btid_from_index_name(), heap_get_class_partitions(), heap_get_class_repr_id(), heap_get_index_with_name(), heap_get_indexinfo_of_btid(), heap_scancache_start_modify(), heap_set_autoincrement_value(), locator_check_foreign_key(), logtb_create_unique_stats_from_repr(), logtb_tran_load_global_stats_func(), or_get_classrep(), or_get_classrep_noindex(), or_get_hierarchy_helper(), or_get_old_representation(), or_rep_id(), orc_diskrep_from_record(), partition_find_partition_for_record(), partition_get_partition_oids(), qexec_execute_build_columns(), qexec_execute_build_indexes(), stats_update_partitioned_statistics(), and xfile_apply_tde_to_class_files().

#define NULL_SECTID   (-1) /* Value of an invalid sector identifier */

Definition at line 46 of file storage_common.h.

Referenced by disk_format().

#define NULL_SLOTID   (-1) /* Value of an invalid slot identifier */
#define NULL_TRAN_INDEX   (-1)

Definition at line 322 of file storage_common.h.

Referenced by boot_client_all_finalize(), boot_create_all_volumes(), boot_initialize_client(), boot_initialize_server(), boot_register_client(), boot_restart_client(), boot_restart_server(), boot_server_die_or_changed(), boot_unregister_client(), css_count_transaction_worker_threads_mapfunc(), css_initialize_conn(), css_platform_independent_poll(), css_send_request_with_socket(), css_stop_non_log_writer(), css_wp_worker_get_busy_count_mapper(), locator_defence_drop_class_name_entry(), locator_drop_class_name_entry(), locator_drop_transient_class_name_entries(), locator_initialize(), locator_is_exist_class_name_entry(), locator_lock_and_return_object(), locator_return_object_assign(), locator_savepoint_class_name_entry(), locator_savepoint_transient_class_name_entries(), lock_abort_composite_lock(), lock_demote_class_lock(), lock_detect_local_deadlock(), lock_get_class_lock(), lock_get_object_lock(), lock_has_lock_on_object(), log_2pc_attach_client(), log_2pc_attach_global_tran(), log_abort(), log_commit(), log_complete_for_2pc(), log_recovery_analysis(), log_recovery_needs_skip_logical_redo(), log_recovery_redo(), log_recovery_undo(), log_recreate(), log_rv_analysis_complete(), log_rv_outside_noop_redo(), logpb_fatal_error_internal(), logtb_allocate_tran_index(), logtb_assign_tran_index(), logtb_find_tran_index(), logtb_free_tran_index(), logtb_rv_find_allocate_tran_index(), net_server_conn_down(), qmgr_add_query_entry(), qmgr_delete_query_entry(), qmgr_free_query_temp_file(), qmgr_get_query_entry(), qmgr_set_query_error(), cubthread::entry_manager::recycle_context(), restoredb(), restoreslave(), cubthread::entry_manager::retire_context(), cubthread::entry::retire_system_worker(), sboot_register_client(), stran_server_2pc_attach_global_tran(), tran_2pc_attach_global_tran(), tran_cache_tran_settings(), tran_server_2pc_attach_global_tran(), xboot_initialize_server(), xboot_register_client(), xboot_restart_from_backup(), xboot_unregister_client(), xlocator_delete_class_name(), and xlogtb_kill_tran_index().

#define NULL_TRANID   (-1)

Definition at line 321 of file storage_common.h.

Referenced by boot_create_all_volumes(), boot_restart_server(), css_change_ha_server_state(), cubload::load_task::execute(), la_log_record_process(), lock_demote_class_lock(), log_2pc_check_duplicate_global_tran_id(), log_2pc_find_tran_descriptor(), log_2pc_get_global_tran_info(), log_2pc_prepare_global_tran(), log_2pc_recovery(), log_2pc_recovery_prepared(), log_2pc_set_global_tran_info(), log_abort_all_active_transaction(), log_complete_for_2pc(), log_final(), log_find_unilaterally_largest_undo_lsa(), log_recovery_abort_all_atomic_sysops(), log_recovery_abort_atomic_sysop(), log_recovery_finish_all_postpone(), log_recovery_finish_postpone(), log_recovery_undo(), logpb_checkpoint_topops(), logpb_checkpoint_trans(), logtb_allocate_tran_index(), logtb_count_clients(), logtb_count_not_allowed_clients_in_maintenance_mode(), logtb_create_unique_stats_from_repr(), logtb_descriptors_start_scan(), logtb_find_client_hostname(), logtb_find_client_name(), logtb_find_client_name_host_pid(), logtb_find_client_type(), logtb_find_current_tranid(), logtb_find_interrupt(), logtb_find_smallest_and_largest_active_pages(), logtb_find_smallest_lsa(), logtb_find_tran_index(), logtb_find_tranid(), logtb_free_tran_index(), logtb_free_tran_index_with_undo_lsa(), logtb_get_client_ids(), logtb_initialize_tdes(), logtb_initialize_tdes_for_mvcc_testing(), logtb_is_active(), logtb_is_system_worker_tranid(), logtb_istran_finished(), logtb_rv_find_allocate_tran_index(), logtb_set_num_loose_end_trans(), logtb_set_suppress_repl_on_transaction(), logtb_set_tran_index_interrupt(), logtb_set_user_name(), stran_server_2pc_start(), systdes_claim_tdes(), tran_server_2pc_start(), xboot_register_client(), xlog_dump(), xlogtb_dump_trantable(), and xlogtb_get_pack_tran_table().

#define NULL_VOLID   (-1) /* Value of an invalid volume identifier */

Definition at line 45 of file storage_common.h.

Referenced by boot_add_volume_extension(), boot_check_permanent_volumes(), boot_create_all_volumes(), boot_find_last_permanent(), boot_find_rest_permanent_volumes(), boot_parse_add_volume_extensions(), boot_remove_all_temp_volumes(), boot_remove_temp_volume(), boot_remove_unknown_temp_volumes(), boot_volume_info_log_path(), btree_delete_meta_record(), btree_dump_leaf_record(), btree_verify_leaf_node(), btree_verify_node(), btree_verify_nonleaf_node(), catalog_drop(), catalog_drop_representation_helper(), catalog_get_record_from_page(), catalog_get_representation(), catalog_initialize_max_space(), catcls_insert_catalog_classes(), catcls_update_subset(), classobj_put_index(), db_add_volume_ex(), db_freepgs(), db_totalpgs(), disk_add_volume(), disk_add_volume_extension(), disk_cache_init(), disk_cache_load_volume(), disk_check_sectors_are_reserved(), disk_extend(), disk_format(), disk_reserve_sectors_in_volume(), disk_rv_undo_format(), disk_set_link(), disk_unformat(), disk_unreserve_ordered_sectors_without_csect(), disk_volume_boot(), dwb_check_data_page_is_sane(), dwb_flush_force(), dwb_write_block(), ehash_extend_bucket(), ehash_insert_to_bucket_after_create(), ehash_merge(), file_create(), fileio_abort_backup(), fileio_allocate_and_initialize_volume_info(), fileio_backup_volume(), fileio_cache(), fileio_decache(), fileio_find_next_perm_volume(), fileio_find_previous_perm_volume(), fileio_find_previous_temp_volume(), fileio_find_volume_id_with_label(), fileio_get_volume_descriptor(), fileio_get_volume_id(), fileio_get_volume_label(), fileio_initialize_backup(), fileio_is_temp_volume(), fileio_is_volume_id_equal(), fileio_is_volume_id_gt(), fileio_is_volume_id_lt(), fileio_restore_volume(), fileio_skip_restore_volume(), fileio_synchronize_all(), fileio_synchronize_sys_volume(), fileio_synchronize_volume(), fix_all_volume_header(), get_active_log_vol_path(), heap_attrinfo_check(), heap_hfid_cache_get(), heap_hfid_table_entry_init(), heap_insert_physical(), heap_scancache_quick_end(), heap_scancache_quick_start_internal(), heap_scancache_start_internal(), heap_stats_sync_bestspace(), locator_delete_force_internal(), locator_insert_force(), locator_update_force(), log_append_compensate_internal(), log_commit(), log_final(), log_recovery(), log_recovery_redo(), log_recovery_undo(), log_recreate(), log_rv_outside_noop_redo(), log_sysop_end_logical_undo(), log_unformat_ahead_volumes(), logpb_add_volume(), logpb_archive_active_log(), logpb_backup(), logpb_backup_for_volume(), logpb_checkpoint(), logpb_copy_database(), logpb_delete(), logpb_recreate_volume_info(), logpb_rename_all_volumes_files(), logpb_scan_volume_info(), pgbuf_check_bcb_page_vpid(), pgbuf_claim_bcb_for_fix(), pgbuf_flush_all_helper(), pgbuf_get_volume_id(), pgbuf_invalidate_all_debug(), pgbuf_set_bcb_page_vpid(), prior_lsa_gen_postpone_record(), prior_lsa_gen_undoredo_record_from_crumbs(), qexec_clear_analytic_state(), qexec_execute_analytic(), qexec_groupby(), qexec_initialize_analytic_state(), qfile_initialize_page_header(), qfile_open_list_scan(), qfile_reopen_list_as_append_mode(), qfile_sort_list_with_func(), qmgr_create_new_temp_file(), qmgr_get_new_page(), qmgr_get_old_page(), qmgr_setup_empty_list_file(), regu_init(), regu_spec_target_init(), sboot_add_volume_extension(), sort_inphase_sort(), sort_listfile(), sort_return_used_resources(), sort_run_flush(), sqfile_get_list_file_page(), xboot_add_volume_extension(), xcatalog_check_rep_dir(), xdisk_get_purpose_and_space_info(), xdisk_get_purpose_and_sys_lastpage(), and xqfile_get_list_file_page().

#define NUM_F_GENERIC_ARGS   32

Definition at line 1063 of file storage_common.h.

Referenced by pt_semantic_check_local().

#define NUM_F_INSERT_SUBSTRING_ARGS   4
#define OR_CACHE_TIME_SIZE   (OR_INT_SIZE * 2)

Definition at line 979 of file storage_common.h.

#define OR_PACK_CACHE_TIME (   PTR,
 
)
Value:
do \
{ \
if ((CACHE_TIME *) (T) != NULL) \
{ \
PTR = or_pack_int (PTR, (T)->sec); \
PTR = or_pack_int (PTR, (T)->usec); \
} \
{ \
PTR = or_pack_int (PTR, 0); \
PTR = or_pack_int (PTR, 0); \
} \
} \
while (0)
#define NULL
Definition: freelistheap.h:34
if(extra_options)
Definition: dynamic_load.c:958
char * or_pack_int(char *ptr, int number)
else
while(1)
Definition: cnvlex.c:816

Definition at line 981 of file storage_common.h.

#define OR_UNPACK_CACHE_TIME (   PTR,
 
)
Value:
do \
{ \
if ((CACHE_TIME *) (T) != NULL) \
{ \
PTR = or_unpack_int (PTR, &((T)->sec)); \
PTR = or_unpack_int (PTR, &((T)->usec)); \
} \
} \
while (0)
#define NULL
Definition: freelistheap.h:34
if(extra_options)
Definition: dynamic_load.c:958
char * or_unpack_int(char *ptr, int *number)
while(1)
Definition: cnvlex.c:816

Definition at line 997 of file storage_common.h.

#define PAGEID_MAX   INT_MAX
#define PGLENGTH_MAX   SHRT_MAX

Definition at line 55 of file storage_common.h.

Referenced by heap_stats_find_page_in_bestspace().

#define READONLY_SCAN (   scan_op_type)    (scan_op_type == S_SELECT)

Definition at line 358 of file storage_common.h.

Referenced by parser_generate_xasl_proc().

#define RECORD_MOVE_DATA (   rec,
  dest_offset,
  src_offset 
)
Value:
do { \
assert ((rec) != NULL && (dest_offset) >= 0 && (src_offset) >= 0); \
assert (((rec)->length - (src_offset)) >= 0); \
assert (((rec)->area_size <= 0) || ((rec)->area_size >= (rec)->length)); \
assert (((rec)->area_size <= 0) \
|| (((rec)->length + ((dest_offset) - (src_offset))) \
<= (rec)->area_size)); \
if ((dest_offset) != (src_offset)) \
{ \
if ((rec)->length != (src_offset)) \
{ \
memmove ((rec)->data + (dest_offset), (rec)->data + (src_offset), \
(rec)->length - (src_offset)); \
(rec)->length = (rec)->length + ((dest_offset) - (src_offset)); \
} \
{ \
(rec)->length = (dest_offset); \
} \
} \
} while (false)
#define assert(x)
#define NULL
Definition: freelistheap.h:34
if(extra_options)
Definition: dynamic_load.c:958
else

Definition at line 257 of file storage_common.h.

Referenced by btree_add_mvccid(), btree_insert_object_ordered_by_oid(), btree_leaf_change_first_object(), btree_leaf_record_handle_first_overflow(), btree_recompress_record(), btree_record_remove_object_internal(), btree_record_replace_object(), and btree_remove_mvccid().

#define RECORD_REPLACE_DATA (   record,
  offset_to_data,
  old_data_size,
  new_data_size,
  new_data 
)
Value:
do \
{ \
assert ((record) != NULL); \
assert ((record)->data != NULL); \
assert ((offset_to_data) >= 0 && (offset_to_data) <= (record)->length); \
assert ((old_data_size) >= 0 && (new_data_size) >= 0); \
assert ((offset_to_data) + (old_data_size) <= (record)->length); \
if ((old_data_size) != (new_data_size)) \
{ \
/* We may need to move data inside record. */ \
if ((offset_to_data) + (old_data_size) < (record)->length) \
{ \
/* Move data inside record. */ \
memmove ((record)->data + (offset_to_data) + (new_data_size), \
(record)->data + (offset_to_data) + (old_data_size), \
(record)->length - (offset_to_data) - (old_data_size)); \
} \
/* Update record length. */ \
(record)->length += (new_data_size) - (old_data_size); \
} \
/* Copy new data (if any). */ \
if ((new_data_size) > 0) \
{ \
memcpy ((record)->data + (offset_to_data), new_data, new_data_size); \
} \
} \
while (false)
#define assert(x)
#define NULL
Definition: freelistheap.h:34
if(extra_options)
Definition: dynamic_load.c:958
while(1)
Definition: cnvlex.c:816

Definition at line 227 of file storage_common.h.

Referenced by log_rv_undoredo_partial_changes_recursive().

#define SECTID_MAX   INT_MAX

Definition at line 54 of file storage_common.h.

Referenced by disk_manager_init().

#define SECTOR_LAST_PAGEID (   sid)    ((((sid) + 1) * DISK_SECTOR_NPAGES) - 1)

Definition at line 112 of file storage_common.h.

Referenced by file_create().

#define SERIAL_ATTR_ATT_NAME   "att_name"
#define SERIAL_ATTR_CACHED_NUM   "cached_num"
#define SERIAL_ATTR_COMMENT   "comment"

Definition at line 1162 of file storage_common.h.

Referenced by do_alter_serial(), and do_create_serial_internal().

#define SERIAL_ATTR_CYCLIC   "cyclic"
#define SERIAL_ATTR_INCREMENT_VAL   "increment_val"
#define SERIAL_ATTR_OWNER   "owner"
#define SM_FILTER_INDEX_ID   "*FP*"
#define SM_PREFIX_INDEX_ID   "*PLID*"
#define SM_PROPERTY_NOT_NULL   "*N"
#define SM_PROPERTY_NUM_INDEX_FAMILY   6

Definition at line 1086 of file storage_common.h.

Referenced by catcls_get_property_set(), and or_install_btids().

#define SM_PROPERTY_VID_KEY   "*V_KY"

Definition at line 1082 of file storage_common.h.

Referenced by vid_att_in_obj_id(), and ws_rehash_vmop().

#define SPLIT_INFO_SIZE   (OR_FLOAT_SIZE + OR_INT_SIZE)

Definition at line 133 of file storage_common.h.

#define VOL_MAX_NPAGES (   page_size)    ((sizeof(off_t) == 4) ? (INT_MAX / (page_size)) : INT_MAX)

Definition at line 56 of file storage_common.h.

Referenced by fileio_expand_to(), and fileio_format().

#define VOL_MAX_NSECTS (   page_size)    (VOL_MAX_NPAGES(page_size) / DISK_SECTOR_NPAGES)

Definition at line 109 of file storage_common.h.

Referenced by disk_add_volume().

#define VOLID_MAX   SHRT_MAX

Definition at line 52 of file storage_common.h.

Referenced by fileio_dismount_all(), and fileio_initialize_volume_info_cache().

#define VSID_FROM_VPID (   vsid,
  vpid 
)    (vsid)->volid = (vpid)->volid; (vsid)->sectid = SECTOR_FROM_PAGEID ((vpid)->pageid)
#define VSID_IS_SECTOR_OF_VPID (   vsid,
  vpid 
)    ((vsid)->volid == (vpid)->volid && (vsid)->sectid == SECTOR_FROM_PAGEID ((vpid)->pageid))

Definition at line 116 of file storage_common.h.

Referenced by file_create(), and file_perm_dealloc().

Typedef Documentation

typedef int ATTR_ID

Definition at line 638 of file storage_common.h.

typedef struct btid BTID

Definition at line 198 of file storage_common.h.

Definition at line 135 of file storage_common.h.

Definition at line 1211 of file storage_common.h.

typedef PAGEID DKNPAGES

Definition at line 74 of file storage_common.h.

typedef SECTID DKNSECTS

Definition at line 80 of file storage_common.h.

typedef VOLID DKNVOLS

Definition at line 71 of file storage_common.h.

typedef struct ehid EHID

Definition at line 208 of file storage_common.h.

typedef PAGEID FILEID

Definition at line 86 of file storage_common.h.

typedef struct hfid HFID

Definition at line 188 of file storage_common.h.

typedef INT64 LOG_PAGEID

Definition at line 76 of file storage_common.h.

Definition at line 77 of file storage_common.h.

typedef INT32 LOLENGTH

Definition at line 87 of file storage_common.h.

typedef struct lorecdes LORECDES

Definition at line 280 of file storage_common.h.

typedef UINT64 MVCCID

Definition at line 182 of file storage_common.h.

typedef char* PAGE_PTR

Definition at line 142 of file storage_common.h.

typedef INT32 PAGEID

Definition at line 73 of file storage_common.h.

typedef INT16 PGLENGTH

Definition at line 84 of file storage_common.h.

typedef PGSLOTID PGNSLOTS

Definition at line 83 of file storage_common.h.

typedef INT16 PGSLOTID

Definition at line 82 of file storage_common.h.

typedef struct recdes RECDES

Definition at line 215 of file storage_common.h.

typedef int REPR_ID

Definition at line 637 of file storage_common.h.

typedef INT32 SECTID

Definition at line 79 of file storage_common.h.

typedef struct spacedb_all SPACEDB_ALL

Definition at line 593 of file storage_common.h.

typedef struct spacedb_files SPACEDB_FILES

Definition at line 624 of file storage_common.h.

Definition at line 601 of file storage_common.h.

typedef int TRANID

Definition at line 319 of file storage_common.h.

typedef INT16 VOLID

Definition at line 70 of file storage_common.h.

typedef struct xasl_id XASL_ID

Definition at line 1009 of file storage_common.h.

Enumeration Type Documentation

anonymous enum
Enumerator
NULL_CHN 
CHN_UNKNOWN_ATCLIENT 

Definition at line 65 of file storage_common.h.

anonymous enum
Enumerator
REC_UNKNOWN 
REC_ASSIGN_ADDRESS 
REC_HOME 
REC_NEWHOME 
REC_RELOCATION 
REC_BIGONE 
REC_MARKDELETED 
REC_DELETED_WILL_REUSE 
REC_RESERVED_TYPE_8 
REC_RESERVED_TYPE_9 
REC_RESERVED_TYPE_10 
REC_RESERVED_TYPE_11 
REC_RESERVED_TYPE_12 
REC_RESERVED_TYPE_13 
REC_RESERVED_TYPE_14 
REC_RESERVED_TYPE_15 
REC_4BIT_USED_TYPE_MAX 
REC_4BIT_TYPE_MAX 

Definition at line 1167 of file storage_common.h.

Enumerator
HS_NONE 
HS_ACCEPT_ALL 
HS_REJECT_ALL 

Definition at line 1255 of file storage_common.h.

Enumerator
BTREE_CONSTRAINT_UNIQUE 
BTREE_CONSTRAINT_PRIMARY_KEY 

Definition at line 647 of file storage_common.h.

Enumerator
BTREE_KEY_INFO_INVALID 
BTREE_KEY_INFO_VOLUMEID 
BTREE_KEY_INFO_PAGEID 
BTREE_KEY_INFO_SLOTID 
BTREE_KEY_INFO_KEY 
BTREE_KEY_INFO_OID_COUNT 
BTREE_KEY_INFO_FIRST_OID 
BTREE_KEY_INFO_OVERFLOW_KEY 
BTREE_KEY_INFO_OVERFLOW_OIDS 
BTREE_KEY_INFO_COUNT 

Definition at line 540 of file storage_common.h.

Enumerator
BTREE_NODE_INFO_INVALID 
BTREE_NODE_INFO_VOLUMEID 
BTREE_NODE_INFO_PAGEID 
BTREE_NODE_INFO_NODE_TYPE 
BTREE_NODE_INFO_KEY_COUNT 
BTREE_NODE_INFO_FIRST_KEY 
BTREE_NODE_INFO_LAST_KEY 
BTREE_NODE_INFO_COUNT 

Definition at line 556 of file storage_common.h.

Enumerator
BTREE_KEY_FOUND 
BTREE_KEY_NOTFOUND 
BTREE_ERROR_OCCURRED 
BTREE_ACTIVE_KEY_FOUND 
BTREE_KEY_SMALLER 
BTREE_KEY_BIGGER 
BTREE_KEY_BETWEEN 

Definition at line 423 of file storage_common.h.

enum BTREE_TYPE
Enumerator
BTREE_UNIQUE 
BTREE_INDEX 
BTREE_REVERSE_UNIQUE 
BTREE_REVERSE_INDEX 
BTREE_PRIMARY_KEY 
BTREE_FOREIGN_KEY 

Definition at line 653 of file storage_common.h.

Enumerator
DB_NOT_PARTITIONED_CLASS 
DB_PARTITIONED_CLASS 
DB_PARTITION_CLASS 

Definition at line 1240 of file storage_common.h.

Enumerator
DB_PARTITION_HASH 
DB_PARTITION_RANGE 
DB_PARTITION_LIST 

Definition at line 1233 of file storage_common.h.

enum EH_SEARCH
Enumerator
EH_KEY_FOUND 
EH_KEY_NOTFOUND 
EH_ERROR_OCCURRED 

Definition at line 415 of file storage_common.h.

enum FUNC_TYPE
Enumerator
PT_MIN 
PT_MAX 
PT_SUM 
PT_AVG 
PT_STDDEV 
PT_VARIANCE 
PT_STDDEV_POP 
PT_VAR_POP 
PT_STDDEV_SAMP 
PT_VAR_SAMP 
PT_COUNT 
PT_COUNT_STAR 
PT_GROUPBY_NUM 
PT_AGG_BIT_AND 
PT_AGG_BIT_OR 
PT_AGG_BIT_XOR 
PT_GROUP_CONCAT 
PT_ROW_NUMBER 
PT_RANK 
PT_DENSE_RANK 
PT_NTILE 
PT_JSON_ARRAYAGG 
PT_JSON_OBJECTAGG 
PT_TOP_AGG_FUNC 
PT_LEAD 
PT_LAG 
PT_GENERIC 
F_TABLE_SET 
F_TABLE_MULTISET 
F_TABLE_SEQUENCE 
F_TOP_TABLE_FUNC 
F_MIDXKEY 
F_SET 
F_MULTISET 
F_SEQUENCE 
F_VID 
F_GENERIC 
F_CLASS_OF 
F_INSERT_SUBSTRING 
F_ELT 
F_JSON_OBJECT 
F_JSON_ARRAY 
F_JSON_MERGE 
F_JSON_MERGE_PATCH 
F_JSON_INSERT 
F_JSON_REMOVE 
F_JSON_ARRAY_APPEND 
F_JSON_GET_ALL_PATHS 
F_JSON_REPLACE 
F_JSON_SET 
F_JSON_KEYS 
F_JSON_ARRAY_INSERT 
F_JSON_SEARCH 
F_JSON_CONTAINS_PATH 
F_JSON_EXTRACT 
F_JSON_CONTAINS 
F_JSON_DEPTH 
F_JSON_LENGTH 
F_JSON_PRETTY 
F_JSON_QUOTE 
F_JSON_TYPE 
F_JSON_UNQUOTE 
F_JSON_VALID 
F_REGEXP_COUNT 
F_REGEXP_INSTR 
F_REGEXP_LIKE 
F_REGEXP_REPLACE 
F_REGEXP_SUBSTR 
F_BENCHMARK 
PT_FIRST_VALUE 
PT_LAST_VALUE 
PT_NTH_VALUE 
PT_MEDIAN 
PT_CUME_DIST 
PT_PERCENT_RANK 
PT_PERCENTILE_CONT 
PT_PERCENTILE_DISC 

Definition at line 891 of file storage_common.h.

Enumerator
HEAP_PAGE_INFO_INVALID 
HEAP_PAGE_INFO_CLASS_OID 
HEAP_PAGE_INFO_PREV_PAGE 
HEAP_PAGE_INFO_NEXT_PAGE 
HEAP_PAGE_INFO_NUM_SLOTS 
HEAP_PAGE_INFO_NUM_RECORDS 
HEAP_PAGE_INFO_ANCHOR_TYPE 
HEAP_PAGE_INFO_ALIGNMENT 
HEAP_PAGE_INFO_TOTAL_FREE 
HEAP_PAGE_INFO_CONT_FREE 
HEAP_PAGE_INFO_OFFSET_TO_FREE_AREA 
HEAP_PAGE_INFO_IS_SAVING 
HEAP_PAGE_INFO_UPDATE_BEST 
HEAP_PAGE_INFO_COUNT 
HEAP_PAGE_INFO_FIRST 

Definition at line 518 of file storage_common.h.

Enumerator
HEAP_RECORD_INFO_INVALID 
HEAP_RECORD_INFO_T_PAGEID 
HEAP_RECORD_INFO_T_SLOTID 
HEAP_RECORD_INFO_T_VOLUMEID 
HEAP_RECORD_INFO_T_OFFSET 
HEAP_RECORD_INFO_T_LENGTH 
HEAP_RECORD_INFO_T_REC_TYPE 
HEAP_RECORD_INFO_T_REPRID 
HEAP_RECORD_INFO_T_CHN 
HEAP_RECORD_INFO_T_MVCC_INSID 
HEAP_RECORD_INFO_T_MVCC_DELID 
HEAP_RECORD_INFO_T_MVCC_FLAGS 
HEAP_RECORD_INFO_T_MVCC_PREV_VERSION 
HEAP_RECORD_INFO_COUNT 
HEAP_RECORD_INFO_FIRST 

Definition at line 496 of file storage_common.h.

Enumerator
KILLSTMT_TRAN 
KILLSTMT_QUERY 

Definition at line 1248 of file storage_common.h.

Enumerator
LC_CLASSNAME_RESERVED 
LC_CLASSNAME_DELETED 
LC_CLASSNAME_EXIST 
LC_CLASSNAME_ERROR 
LC_CLASSNAME_RESERVED_RENAME 
LC_CLASSNAME_DELETED_RENAME 

Definition at line 400 of file storage_common.h.

enum LOCK
Enumerator
NA_LOCK 
INCON_NON_TWO_PHASE_LOCK 
NULL_LOCK 
SCH_S_LOCK 
IS_LOCK 
S_LOCK 
IX_LOCK 
BU_LOCK 
SIX_LOCK 
U_LOCK 
X_LOCK 
SCH_M_LOCK 

Definition at line 367 of file storage_common.h.

Enumerator
LOCK_COMPAT_NO 
LOCK_COMPAT_YES 
LOCK_COMPAT_UNKNOWN 

Definition at line 360 of file storage_common.h.

Enumerator
LOG_ERROR_IF_DELETED 
LOG_WARNING_IF_DELETED 

Definition at line 570 of file storage_common.h.

Enumerator
T_ADD 
T_SUB 
T_MUL 
T_DIV 
T_UNPLUS 
T_UNMINUS 
T_PRIOR 
T_CONNECT_BY_ROOT 
T_QPRIOR 
T_BIT_NOT 
T_BIT_AND 
T_BIT_OR 
T_BIT_XOR 
T_BIT_COUNT 
T_BITSHIFT_LEFT 
T_BITSHIFT_RIGHT 
T_INTDIV 
T_INTMOD 
T_IF 
T_IFNULL 
T_ISNULL 
T_ACOS 
T_ASIN 
T_ATAN 
T_ATAN2 
T_COS 
T_SIN 
T_TAN 
T_COT 
T_PI 
T_DEGREES 
T_RADIANS 
T_FORMAT 
T_CONCAT 
T_CONCAT_WS 
T_FIELD 
T_LEFT 
T_RIGHT 
T_REPEAT 
T_SPACE 
T_LOCATE 
T_MID 
T_STRCMP 
T_REVERSE 
T_DISK_SIZE 
T_LN 
T_LOG2 
T_LOG10 
T_ADDDATE 
T_DATE_ADD 
T_SUBDATE 
T_DATE_SUB 
T_DATE_FORMAT 
T_STR_TO_DATE 
T_MOD 
T_POSITION 
T_SUBSTRING 
T_SUBSTRING_INDEX 
T_OCTET_LENGTH 
T_BIT_LENGTH 
T_CHAR_LENGTH 
T_MD5 
T_LOWER 
T_UPPER 
T_LIKE_LOWER_BOUND 
T_LIKE_UPPER_BOUND 
T_TRIM 
T_LTRIM 
T_RTRIM 
T_LPAD 
T_RPAD 
T_REPLACE 
T_TRANSLATE 
T_ADD_MONTHS 
T_LAST_DAY 
T_MONTHS_BETWEEN 
T_SYS_DATE 
T_SYS_TIME 
T_SYS_TIMESTAMP 
T_UTC_TIME 
T_UTC_DATE 
T_TIME_FORMAT 
T_TIMESTAMP 
T_UNIX_TIMESTAMP 
T_FROM_UNIXTIME 
T_SYS_DATETIME 
T_YEAR 
T_MONTH 
T_DAY 
T_HOUR 
T_MINUTE 
T_SECOND 
T_QUARTER 
T_WEEKDAY 
T_DAYOFWEEK 
T_DAYOFYEAR 
T_TODAYS 
T_FROMDAYS 
T_TIMETOSEC 
T_SECTOTIME 
T_MAKEDATE 
T_MAKETIME 
T_WEEK 
T_TO_CHAR 
T_TO_DATE 
T_TO_TIME 
T_TO_TIMESTAMP 
T_TO_DATETIME 
T_TO_NUMBER 
T_CURRENT_VALUE 
T_NEXT_VALUE 
T_CAST 
T_CAST_NOFAIL 
T_CAST_WRAP 
T_CASE 
T_EXTRACT 
T_LOCAL_TRANSACTION_ID 
T_FLOOR 
T_CEIL 
T_SIGN 
T_POWER 
T_ROUND 
T_LOG 
T_EXP 
T_SQRT 
T_TRUNC 
T_ABS 
T_CHR 
T_INSTR 
T_LEAST 
T_GREATEST 
T_STRCAT 
T_NULLIF 
T_COALESCE 
T_NVL 
T_NVL2 
T_DECODE 
T_RAND 
T_DRAND 
T_RANDOM 
T_DRANDOM 
T_INCR 
T_DECR 
T_SYS_CONNECT_BY_PATH 
T_DATE 
T_TIME 
T_DATEDIFF 
T_TIMEDIFF 
T_ROW_COUNT 
T_LAST_INSERT_ID 
T_DEFAULT 
T_LIST_DBS 
T_BIT_TO_BLOB 
T_BLOB_TO_BIT 
T_CHAR_TO_CLOB 
T_CLOB_TO_CHAR 
T_LOB_LENGTH 
T_TYPEOF 
T_INDEX_CARDINALITY 
T_EVALUATE_VARIABLE 
T_DEFINE_VARIABLE 
T_PREDICATE 
T_EXEC_STATS 
T_ADDTIME 
T_BIN 
T_FINDINSET 
T_HEX 
T_ASCII 
T_CONV 
T_INET_ATON 
T_INET_NTOA 
T_TO_ENUMERATION_VALUE 
T_CHARSET 
T_COLLATION 
T_WIDTH_BUCKET 
T_TRACE_STATS 
T_AES_ENCRYPT 
T_AES_DECRYPT 
T_SHA_ONE 
T_SHA_TWO 
T_INDEX_PREFIX 
T_TO_BASE64 
T_FROM_BASE64 
T_SYS_GUID 
T_SLEEP 
T_DBTIMEZONE 
T_SESSIONTIMEZONE 
T_TZ_OFFSET 
T_NEW_TIME 
T_FROM_TZ 
T_TO_DATETIME_TZ 
T_TO_TIMESTAMP_TZ 
T_UTC_TIMESTAMP 
T_CRC32 
T_CURRENT_DATETIME 
T_CURRENT_TIMESTAMP 
T_CURRENT_DATE 
T_CURRENT_TIME 
T_CONV_TZ 

Definition at line 688 of file storage_common.h.

enum PAGE_TYPE
Enumerator
PAGE_UNKNOWN 
PAGE_FTAB 
PAGE_HEAP 
PAGE_VOLHEADER 
PAGE_VOLBITMAP 
PAGE_QRESULT 
PAGE_EHASH 
PAGE_OVERFLOW 
PAGE_AREA 
PAGE_CATALOG 
PAGE_BTREE 
PAGE_LOG 
PAGE_DROPPED_FILES 
PAGE_VACUUM_DATA 
PAGE_LAST 

Definition at line 145 of file storage_common.h.

Enumerator
Q_DISTINCT 
Q_ALL 

Definition at line 1018 of file storage_common.h.

enum RANGE_TYPE
Enumerator
R_KEY 
R_RANGE 
R_KEYLIST 
R_RANGELIST 

Definition at line 1024 of file storage_common.h.

enum SCAN_CODE
Enumerator
S_ERROR 
S_END 
S_SUCCESS 
S_SUCCESS_CHN_UPTODATE 
S_DOESNT_FIT 
S_DOESNT_EXIST 
S_SNAPSHOT_NOT_SATISFIED 

Definition at line 473 of file storage_common.h.

Enumerator
S_FORWARD 
S_BACKWARD 

Definition at line 460 of file storage_common.h.

Enumerator
S_SELECT 
S_SELECT_WITH_LOCK 
S_DELETE 
S_UPDATE 

Definition at line 484 of file storage_common.h.

Enumerator
S_BEFORE 
S_ON 
S_AFTER 

Definition at line 466 of file storage_common.h.

Enumerator
S_OPENED 
S_STARTED 
S_ENDED 
S_CLOSED 

Definition at line 452 of file storage_common.h.

Enumerator
SHOWSTMT_START 
SHOWSTMT_NULL 
SHOWSTMT_ACCESS_STATUS 
SHOWSTMT_VOLUME_HEADER 
SHOWSTMT_ACTIVE_LOG_HEADER 
SHOWSTMT_ARCHIVE_LOG_HEADER 
SHOWSTMT_SLOTTED_PAGE_HEADER 
SHOWSTMT_SLOTTED_PAGE_SLOTS 
SHOWSTMT_HEAP_HEADER 
SHOWSTMT_ALL_HEAP_HEADER 
SHOWSTMT_HEAP_CAPACITY 
SHOWSTMT_ALL_HEAP_CAPACITY 
SHOWSTMT_INDEX_HEADER 
SHOWSTMT_INDEX_CAPACITY 
SHOWSTMT_ALL_INDEXES_HEADER 
SHOWSTMT_ALL_INDEXES_CAPACITY 
SHOWSTMT_GLOBAL_CRITICAL_SECTIONS 
SHOWSTMT_JOB_QUEUES 
SHOWSTMT_TIMEZONES 
SHOWSTMT_FULL_TIMEZONES 
SHOWSTMT_TRAN_TABLES 
SHOWSTMT_THREADS 
SHOWSTMT_PAGE_BUFFER_STATUS 
SHOWSTMT_END 

Definition at line 1032 of file storage_common.h.

Enumerator
SM_ATTFLAG_NONE 
SM_ATTFLAG_INDEX 
SM_ATTFLAG_UNIQUE 
SM_ATTFLAG_NON_NULL 
SM_ATTFLAG_VID 
SM_ATTFLAG_NEW 
SM_ATTFLAG_REVERSE_INDEX 
SM_ATTFLAG_REVERSE_UNIQUE 
SM_ATTFLAG_PRIMARY_KEY 
SM_ATTFLAG_AUTO_INCREMENT 
SM_ATTFLAG_FOREIGN_KEY 
SM_ATTFLAG_PARTITION_KEY 

Definition at line 1100 of file storage_common.h.

Enumerator
SM_FOREIGN_KEY_CASCADE 
SM_FOREIGN_KEY_RESTRICT 
SM_FOREIGN_KEY_NO_ACTION 
SM_FOREIGN_KEY_SET_NULL 

Definition at line 1117 of file storage_common.h.

Enumerator
ID_ATTRIBUTE 
ID_SHARED_ATTRIBUTE 
ID_CLASS_ATTRIBUTE 
ID_METHOD 
ID_CLASS_METHOD 
ID_INSTANCE 
ID_CLASS 
ID_NULL 

Definition at line 1133 of file storage_common.h.

Enumerator
SPACEDB_PERM_PERM_ALL 
SPACEDB_PERM_TEMP_ALL 
SPACEDB_TEMP_TEMP_ALL 
SPACEDB_TOTAL_ALL 
SPACEDB_ALL_COUNT 

Definition at line 583 of file storage_common.h.

Enumerator
SPACEDB_INDEX_FILE 
SPACEDB_HEAP_FILE 
SPACEDB_SYSTEM_FILE 
SPACEDB_TEMP_FILE 
SPACEDB_TOTAL_FILE 
SPACEDB_FILE_COUNT 

Definition at line 613 of file storage_common.h.

Function Documentation

char* btid_to_string ( char *  buf,
int  buf_size,
BTID btid 
)

Definition at line 404 of file storage_common.c.

References vfid::fileid, btid::root_pageid, btid::vfid, and vfid::volid.

Referenced by btree_scan_for_show_index_capacity(), and btree_scan_for_show_index_header().

Here is the caller graph for this function:

INT16 db_io_page_size ( void  )

Definition at line 68 of file storage_common.c.

References db_Io_page_size.

INT16 db_log_page_size ( void  )

Definition at line 79 of file storage_common.c.

References db_Log_page_size.

INT16 db_network_page_size ( void  )

Definition at line 126 of file storage_common.c.

References db_Io_page_size.

Referenced by locator_allocate_copy_area_by_length(), and locator_repl_add_error_to_copyarea().

Here is the caller graph for this function:

INT16 db_page_size ( void  )

Definition at line 57 of file storage_common.c.

References db_User_page_size.

Referenced by createdb(), pgbuf_flush_victim_candidates(), and spage_boot().

Here is the caller graph for this function:

const char* fcode_get_uppercase_name ( FUNC_TYPE  ftype)

Definition at line 412 of file storage_common.c.

References F_BENCHMARK, F_CLASS_OF, F_ELT, F_GENERIC, F_INSERT_SUBSTRING, F_JSON_ARRAY, F_JSON_ARRAY_APPEND, F_JSON_ARRAY_INSERT, F_JSON_CONTAINS, F_JSON_CONTAINS_PATH, F_JSON_DEPTH, F_JSON_EXTRACT, F_JSON_GET_ALL_PATHS, F_JSON_INSERT, F_JSON_KEYS, F_JSON_LENGTH, F_JSON_MERGE, F_JSON_MERGE_PATCH, F_JSON_OBJECT, F_JSON_PRETTY, F_JSON_QUOTE, F_JSON_REMOVE, F_JSON_REPLACE, F_JSON_SEARCH, F_JSON_SET, F_JSON_TYPE, F_JSON_UNQUOTE, F_JSON_VALID, F_MIDXKEY, F_MULTISET, F_REGEXP_COUNT, F_REGEXP_INSTR, F_REGEXP_LIKE, F_REGEXP_REPLACE, F_REGEXP_SUBSTR, F_SEQUENCE, F_SET, F_TABLE_MULTISET, F_TABLE_SEQUENCE, F_TABLE_SET, F_TOP_TABLE_FUNC, F_VID, PT_AGG_BIT_AND, PT_AGG_BIT_OR, PT_AGG_BIT_XOR, PT_AVG, PT_COUNT, PT_COUNT_STAR, PT_CUME_DIST, PT_DENSE_RANK, PT_FIRST_VALUE, PT_GENERIC, PT_GROUP_CONCAT, PT_GROUPBY_NUM, PT_JSON_ARRAYAGG, PT_JSON_OBJECTAGG, PT_LAG, PT_LAST_VALUE, PT_LEAD, PT_MAX, PT_MEDIAN, PT_MIN, PT_NTH_VALUE, PT_NTILE, PT_PERCENT_RANK, PT_PERCENTILE_CONT, PT_PERCENTILE_DISC, PT_RANK, PT_ROW_NUMBER, PT_STDDEV, PT_STDDEV_POP, PT_STDDEV_SAMP, PT_SUM, PT_TOP_AGG_FUNC, PT_VAR_POP, PT_VAR_SAMP, and PT_VARIANCE.

Referenced by db_value_to_json_path(), pt_is_function_index_expr(), qdata_apply_interpolation_function_coercion(), qdata_evaluate_aggregate_list(), qdata_evaluate_analytic_func(), qdata_interpolation_function_values(), qdata_update_agg_interpolation_func_value_and_domain(), qdump_print_aggregate_expression(), qdump_print_function_value(), qexec_execute_analytic(), qexec_resolve_domains_for_aggregation(), and func_type::Node::type_checking().

Here is the caller graph for this function:

char* hfid_to_string ( char *  buf,
int  buf_size,
HFID hfid 
)

Definition at line 396 of file storage_common.c.

References vfid::fileid, hfid::hpgid, hfid::vfid, and vfid::volid.

Referenced by disk_volume_header_next_scan().

Here is the caller graph for this function:

char* oid_to_string ( char *  buf,
int  buf_size,
OID oid 
)

Definition at line 372 of file storage_common.c.

References db_identifier::pageid, db_identifier::slotid, and db_identifier::volid.

Referenced by btree_scan_for_show_index_header(), heap_capacity_next_scan(), and heap_header_next_scan().

Here is the caller graph for this function:

void recdes_set_data_area ( RECDES rec,
char *  data,
int  size 
)
char* vfid_to_string ( char *  buf,
int  buf_size,
VFID vfid 
)

Definition at line 388 of file storage_common.c.

References vfid::fileid, and vfid::volid.

Referenced by btree_scan_for_show_index_header(), and heap_header_next_scan().

Here is the caller graph for this function:

char* vpid_to_string ( char *  buf,
int  buf_size,
VPID vpid 
)

Definition at line 380 of file storage_common.c.

References vpid::pageid, and vpid::volid.

Referenced by heap_header_next_scan().

Here is the caller graph for this function:

Variable Documentation

const bool COPY = false
static

Definition at line 1165 of file storage_common.h.

Referenced by boot_get_db_parm(), btree_compress_node(), btree_delete_key_from_leaf(), btree_dump_leaf_record(), btree_find_oid_with_page_and_record(), btree_get_num_visible_oids_from_all_ovf(), btree_key_append_object_to_overflow(), btree_key_delete_remove_object(), btree_key_find_and_insert_delete_mvccid(), btree_key_find_first_visible_row_from_all_ovf(), btree_key_insert_delete_mvccid(), btree_key_insert_new_object(), btree_key_lock_and_append_object_unique(), btree_key_online_index_IB_insert(), btree_key_online_index_tran_delete(), btree_key_online_index_tran_insert(), btree_key_online_index_tran_insert_DF(), btree_key_remove_delete_mvccid(), btree_key_remove_insert_mvccid(), btree_key_remove_object_and_keep_visible_first(), btree_merge_node(), btree_modify_overflow_link(), btree_overflow_remove_object(), btree_replace_first_oid_with_ovfl_oid(), btree_rv_record_modify_internal(), btree_scan_for_show_index_header(), btree_sort_get_next(), catalog_adjust_directory_count(), catalog_drop_all(), catalog_drop_all_representation_and_class(), catalog_drop_old_representations(), catalog_drop_representation_helper(), catalog_drop_representation_item(), catalog_get_class_info(), catalog_put_record_into_page(), catalog_put_representation_item(), catalog_update_class_info(), catcls_delete_instance(), catcls_update_instance(), ehash_check_merge_possible(), heap_classrepr_dump(), heap_copy_header_stats(), heap_delete_bigone(), heap_delete_home(), heap_delete_logical(), heap_delete_relocation(), heap_flush(), heap_get_if_diff_chn(), heap_get_last_version(), heap_get_record_data_when_all_ready(), heap_get_record_info(), heap_get_visible_version_internal(), heap_prefetch(), heap_remove_page_on_vacuum(), heap_rv_mvcc_redo_delete_internal(), heap_rv_mvcc_undo_delete(), heap_update_bigone(), heap_update_home(), heap_update_logical(), heap_update_relocation(), locator_attribute_info_force(), locator_check_all_entries_of_all_btrees(), locator_check_btree_entries(), locator_check_by_class_oid(), locator_check_primary_key_delete(), locator_check_primary_key_update(), locator_delete_force_internal(), locator_delete_lob_force(), locator_get_object(), locator_lock_and_get_object(), locator_lock_and_get_object_with_evaluation(), locator_lock_and_return_object(), locator_update_force(), log_rv_record_modify_internal(), online_index_builder(), or_get_hierarchy_helper(), process_object(), qexec_analytic_put_next(), qexec_execute_duplicate_key_update(), qexec_execute_obj_fetch(), qexec_execute_selupd_list(), qexec_gby_put_next(), qexec_groupby_index(), qexec_hash_gby_put_next(), redistribute_partition_data(), scan_next_heap_scan(), tde_get_keyinfo(), update_indexes(), vacuum_heap_prepare_record(), vacuum_rv_check_at_undo(), xheap_reclaim_addresses(), xlocator_check_fk_validity(), xlocator_fetch_all(), xlocator_lock_and_fetch_all(), xlocator_remove_class_from_index(), and xstats_update_all_statistics().

const bool PEEK = true
static

Definition at line 1164 of file storage_common.h.

const int SM_MAX_STRING_LENGTH

Definition at line 69 of file class_object.c.