CUBRID Engine
latest
|
#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"
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 |
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 |
#define BTID_AS_ARGS | ( | btid | ) | (btid)->root_pageid, VFID_AS_ARGS (&(btid)->vfid) |
Definition at line 206 of file storage_common.h.
Referenced by btree_check_by_btid(), btree_delete_internal(), btree_fix_root_for_insert(), btree_insert_internal(), btree_remove_delete_mvccid_unique_internal(), btree_split_node_and_advance(), file_header_dump_descriptor(), vacuum_process_log_block(), and xbtree_load_online_index().
#define BTID_COPY | ( | btid_ptr1, | |
btid_ptr2 | |||
) | *(btid_ptr1) = *(btid_ptr2) |
Definition at line 307 of file storage_common.h.
Referenced by btree_check_by_class_oid(), btree_check_foreign_key(), btree_get_pkey_btid(), btree_get_statistics(), btree_load_check_fk(), catcls_find_btid_of_class_name(), db_constraint_index(), do_find_unique_constraint_violations(), flatten_properties(), fpcache_copy_key(), heap_get_btid_from_index_name(), heap_get_index_with_name(), heap_set_autoincrement_value(), index_builder_loader_task::index_builder_loader_task(), locator_check_foreign_key(), logtb_global_unique_stat_key_copy(), logtb_tran_create_btid_unique_stats(), partition_prune_unique_btid(), pt_to_index_info(), qdata_evaluate_aggregate_hierarchy(), qexec_clear_access_spec_list(), qexec_evaluate_partition_aggregates(), qexec_remove_duplicates_for_replace(), serial_alloc_cache_area(), sm_exist_index(), sm_find_index(), and xbtree_find_multi_uniques().
#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 BTID_IS_EQUAL | ( | b1, | |
b2 | |||
) |
Definition at line 311 of file storage_common.h.
Referenced by btree_check_by_class_oid(), btree_is_btid_online_index(), btree_repair_prev_link_by_class_oid(), catalog_copy_btree_statistic(), catalog_get_cardinality(), classobj_find_class_constraint_by_btid(), classobj_find_cons_index2_col_type_list(), classobj_is_exist_foreign_key_ref(), deallocate_index(), drop_foreign_key_ref_internal(), flatten_properties(), heap_classrepr_dump(), heap_classrepr_find_index_id(), locator_check_btree_entries(), locator_check_class(), locator_was_index_already_applied(), logtb_tran_btid_hash_cmp_func(), or_get_hierarchy_helper(), orc_diskrep_from_record(), qexec_execute_build_columns(), qo_get_attr_info(), qo_get_attr_info_func_index(), qo_get_index_info(), qo_is_pk_fk_full_join(), sch_exported_keys_or_cross_reference(), sm_is_index_visible(), stats_find_inherited_index_stats(), transfer_disk_structures(), and xlocator_remove_class_from_index().
#define BTID_IS_NULL | ( | btid | ) | (((btid)->vfid.fileid == NULL_FILEID) ? 1 : 0) |
Definition at line 309 of file storage_common.h.
Referenced by multi_index_unique_stats::add_empty(), multi_index_unique_stats::add_index_stats(), allocate_disk_structures_index(), btree_fix_ovfl_oid_pages_by_btid(), btree_get_index_key_type(), btree_get_statistics(), btree_get_stats(), btree_load_check_fk(), btree_load_index(), catalog_get_cardinality_by_name(), classobj_put_index(), db_get_btree_statistics(), multi_index_unique_stats::get_stats_of(), logtb_complete_mvcc(), logtb_delete_global_unique_stats(), partition_find_inherited_btid(), partition_load_aggregate_helper(), qdata_evaluate_aggregate_hierarchy(), qdata_evaluate_aggregate_optimize(), sbtree_get_key_type(), sbtree_get_statistics(), serial_alloc_cache_area(), sm_exist_index(), transfer_disk_structures(), xboot_check_db_consistency(), xbtree_load_index(), and xstats_update_statistics().
#define BTID_SET_NULL | ( | btid | ) |
Definition at line 300 of file storage_common.h.
Referenced by btree_get_pkey_btid(), btree_load_check_fk(), catalog_get_cardinality_by_name(), checkdb(), classobj_make_class_constraint(), find_unique(), flatten_properties(), heap_get_btid_from_index_name(), heap_get_index_with_name(), logtb_global_unique_stat_init(), or_get_all_representation(), or_get_old_representation(), pt_to_aggregate_node(), sm_drop_index(), sm_exist_index(), smt_check_foreign_key(), transfer_disk_structures(), 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 | |||
) |
Definition at line 971 of file storage_common.h.
#define CACHE_TIME_RESET | ( | T | ) |
Definition at line 963 of file storage_common.h.
#define COMPOSITE_LOCK | ( | scan_op_type | ) | (scan_op_type != S_SELECT) |
Definition at line 357 of file storage_common.h.
Referenced by qexec_end_mainblock_iterations(), qexec_end_one_iteration(), qexec_execute_mainblock_internal(), and qexec_prune_spec().
#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" |
Definition at line 440 of file storage_common.h.
Referenced by disk_can_overwrite_data_volume(), disk_format(), and disk_volheader_check_magic().
#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" |
Definition at line 441 of file storage_common.h.
Referenced by la_find_log_pagesize(), log_active_log_header_start_scan(), and logpb_initialize_header().
#define CUBRID_MAGIC_LOG_ARCHIVE "CUBRID/LogArchive" |
Definition at line 442 of file storage_common.h.
Referenced by la_log_fetch_from_archive(), log_archive_log_header_start_scan(), and logpb_archive_active_log().
#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_MAX_LENGTH 25 |
Definition at line 438 of file storage_common.h.
Referenced by disk_can_overwrite_data_volume(), disk_format(), disk_volheader_check_magic(), fileio_start_backup(), fix_volume_header(), la_find_log_pagesize(), la_log_fetch_from_archive(), logpb_archive_active_log(), logpb_initialize_header(), tde_create_keys_file(), and tde_validate_keys_file().
#define CUBRID_MAGIC_PREFIX "CUBRID/" |
Definition at line 439 of file storage_common.h.
#define DB_MAX_PATH_LENGTH PATH_MAX |
Definition at line 119 of file storage_common.h.
Referenced by disk_format(), disk_get_link(), disk_set_creation(), disk_spacedb(), disk_vhdr_set_vol_fullname(), logpb_verify_length(), or_unpack_spacedb(), tde_get_mk_file_path(), xboot_copy(), xboot_initialize_server(), xboot_soft_rename(), and xdisk_get_fullname().
#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_SECTOR_NPAGES 64 |
Definition at line 105 of file storage_common.h.
Referenced by createdb(), disk_check_volume(), disk_format(), disk_manager_init(), disk_verify_volume_header(), file_create(), file_destroy(), file_full_table_item_dump(), file_partial_table_item_dump(), file_perm_expand(), file_rv_perm_expand_redo(), file_rv_perm_expand_undo(), file_sector_map_dealloc(), and file_temp_alloc().
#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 DISK_VOLPURPOSE DB_VOLPURPOSE |
Definition at line 315 of file storage_common.h.
Referenced by boot_parse_add_volume_extensions(), disk_format(), disk_get_creation_time(), log_recreate(), and logpb_backup_for_volume().
#define DISK_VPID_ALIGNED_SIZE (DISK_VPID_SIZE + OR_SHORT_SIZE) |
Definition at line 125 of file storage_common.h.
Referenced by btree_check_valid_record(), btree_key_insert_new_key(), btree_leaf_get_vpid_for_overflow_oids(), btree_leaf_record_change_overflow_link(), btree_record_append_object(), btree_record_remove_last_object(), btree_rv_record_modify_internal(), btree_start_overflow_page(), heap_log_postpone_heap_append_pages(), and heap_rv_postpone_append_pages_to_heap().
#define DISK_VPID_SIZE (OR_INT_SIZE + OR_SHORT_SIZE) |
Definition at line 122 of file storage_common.h.
Referenced by btree_check_page_key(), btree_check_valid_record(), btree_construct_leafs(), btree_delete_overflow_key(), btree_key_find_first_visible_row(), btree_leaf_get_nth_oid_ptr(), btree_leaf_get_vpid_for_overflow_oids(), btree_record_get_num_visible_oids(), and btree_save_last_leafrec().
#define HFID_AS_ARGS | ( | hfid | ) | (hfid)->hpgid, VFID_AS_ARGS (&(hfid)->vfid) |
Definition at line 196 of file storage_common.h.
Referenced by file_header_dump_descriptor(), heap_cache_class_info(), heap_hfid_cache_get(), heap_rv_dump_append_pages_to_heap(), vacuum_heap_get_hfid_and_file_type(), and vacuum_heap_page().
#define HFID_COPY | ( | hfid_ptr1, | |
hfid_ptr2 | |||
) | *(hfid_ptr1) = *(hfid_ptr2) |
Definition at line 296 of file storage_common.h.
Referenced by allocate_index(), boot_find_root_heap(), collect_hier_class_info(), disk_get_boot_hfid(), disk_set_boot_hfid(), fix_volume_header(), heap_cache_class_info(), heap_clear_operation_context(), heap_get_class_partitions(), heap_get_partitions_from_subclasses(), heap_header_capacity_start_scan(), heap_ovf_find_vfid(), heap_scancache_add_partition_node(), heap_scancache_quick_start_internal(), heap_stats_add_bestspace(), heap_update_logical(), locator_attribute_info_force(), locator_insert_force(), locator_mflush(), locator_update_force(), partition_find_partition_for_record(), partition_load_aggregate_helper(), partition_prune_unique_btid(), partition_pruning_context_to_cache_entry(), pruningset_to_spec_list(), pt_link_regu_to_selupd_list(), pt_to_delete_xasl(), qexec_execute_insert(), qexec_init_next_partition(), qexec_next_scan_block(), qexec_remove_duplicates_for_replace(), sm_load_online_index(), tde_cipher_initialize(), tde_initialize(), and xlocator_repl_force().
#define HFID_INITIALIZER { VFID_INITIALIZER, NULL_PAGEID } |
Definition at line 194 of file storage_common.h.
Referenced by heap_cache_class_info(), heap_hfid_cache_get(), vacuum_heap(), xfile_apply_tde_to_class_files(), and xlocator_repl_force().
#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 HFID_SET_NULL | ( | hfid | ) |
Definition at line 290 of file storage_common.h.
Referenced by classobj_make_class(), file_tracker_reuse_heap(), heap_create_internal(), heap_rv_postpone_append_pages_to_heap(), heap_scancache_quick_end(), heap_scancache_quick_start_internal(), heap_scancache_start_internal(), locator_repl_mflush(), pt_link_regu_to_selupd_list(), regu_init(), sm_truncate_using_delete(), vacuum_heap(), xlocator_repl_force(), and xlocator_upgrade_instances_domain().
#define IO_DEFAULT_PAGE_SIZE (16 * ONE_K) |
Definition at line 91 of file storage_common.h.
Referenced by db_init(), heap_delete_home(), heap_delete_relocation(), heap_rv_mvcc_redo_insert(), heap_rv_mvcc_redo_redistribute(), patchdb(), and xboot_emergency_patch().
#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) |
Definition at line 92 of file storage_common.h.
Referenced by db_init(), db_set_page_size(), find_valid_page_size(), la_find_log_pagesize(), la_init_recdes_pool(), and make_valid_page_size().
#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) |
Definition at line 106 of file storage_common.h.
Referenced by disk_cache_init(), and fileio_get_number_of_partition_free_sectors().
#define IS_POWER_OF_2 | ( | x | ) | (((x) & ((x) - 1)) == 0) |
Definition at line 99 of file storage_common.h.
Referenced by dwb_adjust_write_buffer_values(), dwb_create_internal(), dwb_load_and_recover_pages(), and find_valid_page_size().
#define IS_WRITE_EXCLUSIVE_LOCK | ( | lock | ) | ((lock) == X_LOCK || (lock) == SCH_M_LOCK) |
Definition at line 493 of file storage_common.h.
Referenced by locator_to_prefetched_lock(), lock_add_composite_lock(), lock_finalize_composite_lock(), lock_is_class_lock_escalated(), and ws_decache_allxlockmops_but_norealclasses().
#define ISCAN_OID_BUFFER_CAPACITY (MAX (ISCAN_OID_BUFFER_MIN_CAPACITY, ISCAN_OID_BUFFER_SIZE)) |
Definition at line 179 of file storage_common.h.
Referenced by btree_keyoid_checkscan_start(), locator_check_btree_entries(), locator_check_primary_key_delete(), locator_check_primary_key_update(), locator_check_unique_btree_entries(), and scan_alloc_oid_list().
#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 |
Definition at line 165 of file storage_common.h.
Referenced by locator_check_btree_entries(), and locator_check_unique_btree_entries().
#define LC_DOESNOT_EXIST 2 |
Definition at line 411 of file storage_common.h.
Referenced by check_set_object(), get_object_value(), locator_lock_and_doesexist(), obj_find_object_by_pkey(), obj_isinstance(), process_value(), pt_bind_parameter(), tp_domain_check_class(), and xlocator_does_exist().
#define LC_ERROR 3 |
Definition at line 412 of file storage_common.h.
Referenced by check_set_object(), get_object_value(), locator_does_exist(), locator_lock_and_doesexist(), obj_find_object_by_pkey(), obj_isinstance(), process_value(), pt_bind_parameter(), slocator_does_exist(), tp_domain_check_class(), and xlocator_does_exist().
#define LC_EXIST 1 |
Definition at line 410 of file storage_common.h.
Referenced by locator_does_exist(), locator_lock_and_doesexist(), process_value(), pt_bind_parameter(), and xlocator_does_exist().
#define LEAF_RECORD_SIZE (0) |
Definition at line 132 of file storage_common.h.
#define LOCK_TO_LOCKMODE_STRING | ( | lock | ) |
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 LOG_PAGESIZE (db_log_page_size()) |
Definition at line 95 of file storage_common.h.
Referenced by check_and_fix_compat_level(), fix_codeset_in_active_log(), log_active_log_header_start_scan(), log_archive_log_header_start_scan(), log_create_internal(), log_do_postpone(), log_find_end_log(), log_get_io_page_size(), log_initialize_internal(), log_recovery_analysis(), log_recovery_redo(), log_recovery_resetlog(), log_rollback(), logpb_archive_active_log(), logpb_background_archiving(), logpb_compute_page_checksum(), logpb_copy_database(), logpb_copy_page(), logpb_delete(), logpb_fetch_from_archive(), logpb_fetch_header_from_active_log(), logpb_fetch_header_with_buffer(), logpb_find_header_parameters(), logpb_find_oldest_available_page_id(), logpb_flush_all_append_pages(), logpb_flush_header(), logpb_get_log_buffer(), logpb_get_memsize(), logpb_initialize_header(), logpb_initialize_pool(), logpb_locate_page(), logpb_page_get_first_null_block_lsa(), logpb_peek_header_of_active_log_from_backup(), logpb_read_page_from_active_log(), logpb_read_page_from_file(), logpb_restore(), logpb_write_page_to_disk(), logpb_write_toflush_pages_to_archive(), logpb_writev_append_pages(), logwr_log_ha_filestat_to_string(), prm_log_pages_to_size(), prm_size_to_log_pages(), spacedb(), undo_fix_compat_level(), vacuum_fetch_log_page(), vacuum_log_prefetch_vacuum_block(), vacuum_worker_allocate_resources(), and xboot_register_client().
#define LOGPAGEID_MAX 0x7fffffffffffLL /* 6 bytes length */ |
Definition at line 59 of file storage_common.h.
Referenced by la_apply_log_file(), log_initialize_internal(), and logwr_log_ha_filestat_to_string().
Definition at line 325 of file storage_common.h.
Referenced by btree_construct_leafs(), btree_insert(), 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_insid(), btree_rv_keyval_undo_insert(), btree_rv_keyval_undo_insert_unique(), btree_rv_read_keybuf_nocopy(), btree_sort_get_next(), btree_undo_insert_object(), btree_undo_insert_object_unique_multiupd(), btree_unpack_mvccinfo(), mvcctable::build_mvcc_info(), mvcctable::compute_oldest_visible_mvccid(), heap_set_mvcc_rec_header_on_overflow(), mvcc_satisfies_delete(), mvcc_satisfies_dirty(), mvcc_satisfies_snapshot(), or_mvcc_get_insid(), vacuum_heap_record_insid_and_prev_version(), vacuum_process_log_block(), vacuum_rv_check_at_undo(), and vacuum_rv_redo_remove_ovf_insid().
#define MVCCID_BACKWARD | ( | id | ) |
Definition at line 349 of file storage_common.h.
#define MVCCID_FIRST ((MVCCID) 4) |
Definition at line 326 of file storage_common.h.
Referenced by mvcc_active_tran::compute_highest_completed_mvccid(), mvcc_active_tran::initialize(), mvcctable::initialize(), log_header::log_header(), logpb_initialize_header(), logpb_vacuum_reset_log_header_cache(), and logtb_initialize_mvcc_testing().
#define MVCCID_FORWARD | ( | id | ) |
Definition at line 339 of file storage_common.h.
Referenced by mvcctable::build_mvcc_info(), mvcctable::get_new_mvccid(), mvcctable::get_two_new_mvccid(), log_recovery_redo(), logtb_complete_sub_mvcc(), vacuum_rv_redo_add_dropped_file(), and vacuum_rv_replace_dropped_file().
#define MVCCID_IS_EQUAL | ( | id1, | |
id2 | |||
) | ((id1) == (id2)) |
Definition at line 333 of file storage_common.h.
#define MVCCID_IS_NORMAL | ( | id | ) | ((id) >= MVCCID_FIRST) |
Definition at line 331 of file storage_common.h.
Referenced by mvcctable::compute_oldest_visible_mvccid(), heap_page_update_chain_after_mvcc_op(), heap_rv_mvcc_redo_delete_home(), heap_rv_mvcc_redo_delete_internal(), heap_rv_mvcc_redo_insert(), heap_rv_redo_update_and_update_chain(), heap_rv_update_chain_after_mvcc_op(), and vacuum_heap_page().
#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_IS_VALID | ( | id | ) | ((id) != MVCCID_NULL) |
Definition at line 329 of file storage_common.h.
Referenced by btree_check_valid_record(), btree_delete_postponed(), btree_key_find_first_visible_row(), btree_leaf_change_first_object(), btree_prepare_bts(), btree_rv_keyval_undo_insert(), btree_rv_keyval_undo_insert_mvcc_delid(), btree_rv_keyval_undo_insert_unique(), btree_rv_save_keyval_for_undo(), mvcctable::build_mvcc_info(), mvcctable::complete_mvcc(), mvcctable::complete_sub_mvcc(), log_rv_undo_record(), logtb_assign_subtransaction_mvccid(), logtb_complete_mvcc(), logtb_get_current_mvccid(), logtb_get_new_subtransaction_mvccid(), logtb_rv_assign_mvccid_for_undo_recovery(), prior_lsa_gen_undoredo_record_from_crumbs(), prior_update_header_mvcc_info(), vacuum_data_entry::vacuum_data_entry(), vacuum_process_log_block(), and vacuum_rv_redo_add_dropped_file().
#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_FILEID (-1) /* Value of an invalid file identifier */ |
Definition at line 50 of file storage_common.h.
Referenced by attribute_to_disk(), boot_create_all_volumes(), classobj_put_index(), compactdb_start(), ehash_hash(), heap_create_internal(), heap_hfid_cache_get(), heap_hfid_table_entry_init(), heap_update_logical(), locator_fun_get_all_mops(), locator_remove_class(), process_class(), regu_init(), regu_spec_target_init(), and sort_listfile().
#define NULL_OFFSET (-1) /* Value of an invalid offset */ |
Definition at line 49 of file storage_common.h.
Referenced by disk_stab_init(), disk_volume_expand(), file_create(), file_header_init(), file_table_move_partial_sectors_to_header(), heap_get_visible_version_from_log(), la_apply_log_file(), la_does_page_exist(), log_append_donetime_internal(), log_do_postpone(), log_find_end_log(), log_recovery_analysis(), log_recovery_find_first_postpone(), log_recovery_redo(), log_rv_analysis_end_checkpoint(), log_startof_nxrec(), log_sysop_end_logical_undo(), logpb_archive_active_log(), logpb_copy_database(), logpb_fetch_header_from_active_log(), logpb_fetch_header_with_buffer(), logpb_flush_header(), logpb_initialize_log_buffer(), logpb_locate_page(), logpb_peek_header_of_active_log_from_backup(), logpb_remove_archive_logs(), logpb_start_append(), logtb_tran_update_unique_stats(), logwr_log_ha_filestat_to_string(), sort_spage_compact(), sort_spage_get_record(), vacuum_process_log_block(), vacuum_recover_lost_block_data(), xbtree_add_index(), xbtree_delete_index(), xbtree_load_index(), and xlog_dump().
#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 */ |
Definition at line 48 of file storage_common.h.
Referenced by btree_advance_and_find_key(), btree_find_split_point(), btree_merge_node(), btree_rv_nodehdr_undo_insert(), btree_rv_noderec_undo_insert(), btree_search_key_and_apply_functions(), btree_search_leaf_page(), btree_set_split_point(), btree_verify_leaf_node(), catalog_add_representation(), catalog_check_consistency(), catalog_drop(), catalog_drop_old_representations(), catalog_dump(), catalog_get_representation(), catalog_put_record_into_page(), catcls_insert_catalog_classes(), catcls_update_subset(), ehash_map(), heap_attrinfo_check(), heap_delete_all_page_records(), heap_delete_physical(), heap_insert_physical(), heap_next_internal(), heap_ovf_insert(), heap_reinitialize_page(), heap_rv_undo_ovf_update(), heap_update_physical(), 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(), overflow_get_capacity(), overflow_get_nbytes(), sort_exphase_merge(), sort_exphase_merge_elim_dup(), sort_run_flush(), sort_spage_find_free(), sort_spage_insert(), spage_delete(), spage_delete_for_recovery(), spage_find_empty_slot(), spage_find_slot_for_insert(), spage_split(), xcatalog_check_rep_dir(), xlocator_fetch_all(), xlocator_lock_and_fetch_all(), xlocator_remove_class_from_index(), and xstats_update_all_statistics().
#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 |
Definition at line 1064 of file storage_common.h.
Referenced by fetch_peek_dbval(), pt_eval_function_type_old(), and qdata_insert_substring_function().
#define OR_CACHE_TIME_SIZE (OR_INT_SIZE * 2) |
Definition at line 979 of file storage_common.h.
#define OR_PACK_CACHE_TIME | ( | PTR, | |
T | |||
) |
Definition at line 981 of file storage_common.h.
#define OR_UNPACK_CACHE_TIME | ( | PTR, | |
T | |||
) |
Definition at line 997 of file storage_common.h.
#define PAGEID_MAX INT_MAX |
Definition at line 53 of file storage_common.h.
Referenced by la_log_phypageid(), logpb_to_physical_pageid(), and pgbuf_flush_page_and_neighbors_fb().
#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 RECDES_INITIALIZER { 0, -1, REC_UNKNOWN, NULL } |
Definition at line 288 of file storage_common.h.
Referenced by btree_delete_key_from_leaf(), btree_scan_for_show_index_header(), catalog_check_consistency(), catalog_dump(), catcls_delete_instance(), catcls_update_instance(), heap_classrepr_dump(), heap_scanrange_to_following(), heap_scanrange_to_prior(), heap_update_bigone(), locator_all_reference_lockset(), locator_check_all_entries_of_all_btrees(), locator_check_btree_entries(), locator_check_by_class_oid(), locator_check_class_names(), locator_check_unique_btree_entries(), locator_delete_lob_force(), locator_initialize(), locator_lock_and_get_object_with_evaluation(), locator_mvcc_reeval_scan_filters(), locator_update_force(), lock_demote_class_lock(), or_get_hierarchy_helper(), qexec_execute_delete(), qexec_execute_obj_fetch(), qexec_execute_update(), scan_next_heap_scan(), scan_next_index_lookup_heap(), serial_update_cur_val_of_serial(), vacuum_rv_check_at_undo(), xlocator_repl_force(), xserial_get_current_value_internal(), xserial_get_next_value_internal(), and xstats_update_all_statistics().
#define RECORD_MOVE_DATA | ( | rec, | |
dest_offset, | |||
src_offset | |||
) |
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 | |||
) |
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_FIRST_PAGEID | ( | sid | ) | ((sid) * DISK_SECTOR_NPAGES) |
Definition at line 111 of file storage_common.h.
Referenced by file_create(), file_destroy(), file_full_table_item_dump(), file_partial_table_item_dump(), file_partsect_alloc(), file_partsect_pageid_to_offset(), file_sector_map_dealloc(), file_sector_map_pages(), and file_temp_alloc().
#define SECTOR_FROM_PAGEID | ( | pageid | ) | ((pageid) / DISK_SECTOR_NPAGES) |
Definition at line 113 of file storage_common.h.
Referenced by disk_check(), disk_format(), disk_is_page_sector_reserved_with_debug_crash(), disk_stab_init(), disk_volume_boot(), file_create(), file_partsect_pageid_to_offset(), and file_perm_dealloc().
#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" |
Definition at line 1160 of file storage_common.h.
Referenced by do_create_serial_internal(), do_update_auto_increment_serial_on_rename(), and serial_load_attribute_info_of_db_serial().
#define SERIAL_ATTR_CACHED_NUM "cached_num" |
Definition at line 1161 of file storage_common.h.
Referenced by do_alter_serial(), do_create_serial_internal(), do_get_serial_cached_num(), and serial_load_attribute_info_of_db_serial().
#define SERIAL_ATTR_CLASS_NAME "class_name" |
Definition at line 1159 of file storage_common.h.
Referenced by do_alter_serial(), do_create_serial_internal(), do_drop_serial(), do_update_auto_increment_serial_on_rename(), and serial_load_attribute_info_of_db_serial().
#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_CURRENT_VAL "current_val" |
Definition at line 1153 of file storage_common.h.
Referenced by do_alter_serial(), do_change_auto_increment_serial(), do_create_serial_internal(), do_reset_auto_increment_serial(), do_update_maxvalue_of_auto_increment_serial(), and serial_load_attribute_info_of_db_serial().
#define SERIAL_ATTR_CYCLIC "cyclic" |
Definition at line 1157 of file storage_common.h.
Referenced by do_alter_serial(), do_create_serial_internal(), and serial_load_attribute_info_of_db_serial().
#define SERIAL_ATTR_INCREMENT_VAL "increment_val" |
Definition at line 1154 of file storage_common.h.
Referenced by do_alter_serial(), do_create_serial_internal(), and serial_load_attribute_info_of_db_serial().
#define SERIAL_ATTR_MAX_VAL "max_val" |
Definition at line 1155 of file storage_common.h.
Referenced by do_alter_serial(), do_change_auto_increment_serial(), do_create_serial_internal(), do_update_maxvalue_of_auto_increment_serial(), and serial_load_attribute_info_of_db_serial().
#define SERIAL_ATTR_MIN_VAL "min_val" |
Definition at line 1156 of file storage_common.h.
Referenced by do_alter_serial(), do_change_auto_increment_serial(), do_create_serial_internal(), do_reset_auto_increment_serial(), and serial_load_attribute_info_of_db_serial().
#define SERIAL_ATTR_NAME "name" |
Definition at line 1151 of file storage_common.h.
Referenced by do_create_serial_internal(), do_get_serial_obj_id(), do_update_auto_increment_serial_on_rename(), and serial_load_attribute_info_of_db_serial().
#define SERIAL_ATTR_OWNER "owner" |
Definition at line 1152 of file storage_common.h.
Referenced by do_create_serial_internal(), and serial_load_attribute_info_of_db_serial().
#define SERIAL_ATTR_STARTED "started" |
Definition at line 1158 of file storage_common.h.
Referenced by do_alter_serial(), do_change_auto_increment_serial(), do_create_serial_internal(), do_reset_auto_increment_serial(), and serial_load_attribute_info_of_db_serial().
#define SERVER_SESSION_KEY_SIZE 8 |
Definition at line 1231 of file storage_common.h.
Referenced by boot_client_all_finalize(), boot_initialize_client(), boot_restart_client(), boot_set_server_session_key(), cas_make_session_for_driver(), csession_find_or_create_session(), ssession_find_or_create_session(), and xboot_register_client().
#define SM_FILTER_INDEX_ID "*FP*" |
Definition at line 1088 of file storage_common.h.
Referenced by catcls_get_or_value_from_indexes(), classobj_make_class_constraints(), classobj_put_index(), and or_install_btids_class().
#define SM_FUNCTION_INDEX_ID "*FI*" |
Definition at line 1089 of file storage_common.h.
Referenced by catcls_get_or_value_from_indexes(), classobj_check_function_constraint_info(), classobj_make_class_constraints(), classobj_put_index(), and or_install_btids_class().
#define SM_MAX_IDENTIFIER_LENGTH 255 |
Definition at line 1149 of file storage_common.h.
Referenced by add_resolution(), checkdb(), checksumdb(), chksum_get_prev_checksum_results(), chksum_need_skip_table(), create_select_to_insert_into(), def_class_internal(), do_alter_clause_change_attribute(), do_check_rows_for_null(), do_create_auto_increment_serial(), do_update_auto_increment_serial_on_rename(), do_update_maxvalue_of_auto_increment_serial(), get_attribute_with_name(), get_class_mops(), get_requested_classes(), trigger_description::init(), class_description::init(), jsp_check_stored_procedure_name(), la_create_repl_filter(), ldr_act_init_context(), ldr_find_class(), pt_make_dotted_identifier_internal(), pt_make_query_show_grants(), pt_make_query_show_table(), qdata_get_cardinality(), query_get_column_with_name(), cubload::session::session(), sm_build_function_nlist(), sm_find_class(), sm_find_class_with_purpose(), sm_free_function_nlist(), sm_locate_method_file(), sm_rename_class(), smt_add_attribute_any(), smt_add_method_any(), smt_change_attribute(), smt_change_query_spec(), smt_rename_any(), smt_set_attribute_default(), tr_create_trigger(), tr_get_class_name(), tr_process_name(), update_locksets_for_multiple_rename(), util_get_class_oids_and_index_btid(), and util_get_table_list_from_file().
#define SM_PREFIX_INDEX_ID "*PLID*" |
Definition at line 1090 of file storage_common.h.
Referenced by catcls_get_or_value_from_indexes(), classobj_make_class_constraints(), classobj_put_index(), and or_install_btids_class().
#define SM_PROPERTY_FOREIGN_KEY "*FK" |
Definition at line 1084 of file storage_common.h.
Referenced by catcls_get_property_set(), classobj_copy_props(), classobj_map_constraint_to_property(), do_promote_partition(), or_get_constraint_comment(), or_install_btids(), and transfer_disk_structures().
#define SM_PROPERTY_INDEX "*I" |
Definition at line 1078 of file storage_common.h.
Referenced by catcls_get_property_set(), classobj_copy_props(), classobj_filter_attribute_props(), classobj_map_constraint_to_property(), or_get_constraint_comment(), or_install_btids(), and transfer_disk_structures().
#define SM_PROPERTY_NOT_NULL "*N" |
Definition at line 1079 of file storage_common.h.
Referenced by classobj_copy_props(), classobj_map_constraint_to_property(), and do_promote_partition().
#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_PRIMARY_KEY "*P" |
Definition at line 1083 of file storage_common.h.
Referenced by catcls_get_property_set(), classobj_copy_props(), classobj_drop_foreign_key_ref(), classobj_map_constraint_to_property(), classobj_put_foreign_key_ref(), do_promote_partition(), or_get_constraint_comment(), or_install_btids(), and transfer_disk_structures().
#define SM_PROPERTY_REVERSE_INDEX "*RI" |
Definition at line 1081 of file storage_common.h.
Referenced by catcls_get_property_set(), classobj_copy_props(), classobj_filter_attribute_props(), classobj_map_constraint_to_property(), or_get_constraint_comment(), or_install_btids(), and transfer_disk_structures().
#define SM_PROPERTY_REVERSE_UNIQUE "*RU" |
Definition at line 1080 of file storage_common.h.
Referenced by catcls_get_property_set(), classobj_copy_props(), classobj_map_constraint_to_property(), do_promote_partition(), or_get_constraint_comment(), or_install_btids(), and transfer_disk_structures().
#define SM_PROPERTY_UNIQUE "*U" |
Definition at line 1077 of file storage_common.h.
Referenced by catcls_get_property_set(), classobj_copy_props(), classobj_map_constraint_to_property(), do_promote_partition(), or_get_constraint_comment(), or_install_btids(), and transfer_disk_structures().
#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.
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) |
Definition at line 115 of file storage_common.h.
Referenced by file_check_vpid(), file_extdata_collect_ftab_pages(), file_table_check_page_is_in_sectors(), file_table_collect_ftab_pages(), and file_table_collector_has_page().
#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 int ATTR_ID |
Definition at line 638 of file storage_common.h.
Definition at line 198 of file storage_common.h.
typedef struct btree_node_split_info BTREE_NODE_SPLIT_INFO |
Definition at line 135 of file storage_common.h.
typedef struct dbdef_vol_ext_info DBDEF_VOL_EXT_INFO |
Definition at line 1211 of file storage_common.h.
Definition at line 74 of file storage_common.h.
Definition at line 80 of file storage_common.h.
Definition at line 71 of file storage_common.h.
Definition at line 208 of file storage_common.h.
Definition at line 86 of file storage_common.h.
Definition at line 188 of file storage_common.h.
typedef INT64 LOG_PAGEID |
Definition at line 76 of file storage_common.h.
typedef PAGEID LOG_PHY_PAGEID |
Definition at line 77 of file storage_common.h.
typedef INT32 LOLENGTH |
Definition at line 87 of file storage_common.h.
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.
Definition at line 83 of file storage_common.h.
typedef INT16 PGSLOTID |
Definition at line 82 of file storage_common.h.
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.
typedef struct spacedb_onevol SPACEDB_ONEVOL |
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.
Definition at line 1009 of file storage_common.h.
anonymous enum |
Enumerator | |
---|---|
NULL_CHN | |
CHN_UNKNOWN_ATCLIENT |
Definition at line 65 of file storage_common.h.
anonymous enum |
Definition at line 1167 of file storage_common.h.
enum AGGREGATE_HASH_STATE |
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.
enum BTREE_KEY_INFO_ID |
Definition at line 540 of file storage_common.h.
enum BTREE_NODE_INFO_ID |
Definition at line 556 of file storage_common.h.
enum BTREE_SEARCH |
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.
enum DB_PARTITION_TYPE |
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 |
Definition at line 891 of file storage_common.h.
enum HEAP_PAGE_INFO_ID |
Definition at line 518 of file storage_common.h.
enum HEAP_RECORD_INFO_ID |
Definition at line 496 of file storage_common.h.
enum KILLSTMT_TYPE |
Enumerator | |
---|---|
KILLSTMT_TRAN | |
KILLSTMT_QUERY |
Definition at line 1248 of file storage_common.h.
enum LC_FIND_CLASSNAME |
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.
enum LOCK_COMPATIBILITY |
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.
enum OPERATOR_TYPE |
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.
enum QUERY_OPTIONS |
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.
enum SCAN_DIRECTION |
Enumerator | |
---|---|
S_FORWARD | |
S_BACKWARD |
Definition at line 460 of file storage_common.h.
enum SCAN_OPERATION_TYPE |
Enumerator | |
---|---|
S_SELECT | |
S_SELECT_WITH_LOCK | |
S_DELETE | |
S_UPDATE |
Definition at line 484 of file storage_common.h.
enum SCAN_POSITION |
Enumerator | |
---|---|
S_BEFORE | |
S_ON | |
S_AFTER |
Definition at line 466 of file storage_common.h.
enum SCAN_STATUS |
Enumerator | |
---|---|
S_OPENED | |
S_STARTED | |
S_ENDED | |
S_CLOSED |
Definition at line 452 of file storage_common.h.
enum SHOWSTMT_TYPE |
Definition at line 1032 of file storage_common.h.
enum SM_ATTRIBUTE_FLAG |
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.
enum SM_NAME_SPACE |
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.
enum SPACEDB_ALL_TYPE |
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.
enum SPACEDB_FILE_TYPE |
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.
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().
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().
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().
Definition at line 197 of file storage_common.c.
References db_monetary::amount, db_data::bigint, db_data::d, db_data::date, db_datetimetz::datetime, db_data::datetime, db_data::datetimetz, DB_CURRENCY_AUSTRALIAN_DOLLAR, DB_CURRENCY_BRASILIAN_REAL, DB_CURRENCY_BRITISH_POUND, DB_CURRENCY_BULGARIAN_LEV, DB_CURRENCY_CAMBODIAN_RIEL, DB_CURRENCY_CANADIAN_DOLLAR, DB_CURRENCY_CHINESE_RENMINBI, DB_CURRENCY_CROATIAN_KUNA, DB_CURRENCY_CZECH_KORUNA, DB_CURRENCY_DANISH_KRONE, DB_CURRENCY_DOLLAR, DB_CURRENCY_EURO, DB_CURRENCY_INDIAN_RUPEE, DB_CURRENCY_NORWEGIAN_KRONE, DB_CURRENCY_POLISH_ZLOTY, DB_CURRENCY_ROMANIAN_LEU, DB_CURRENCY_RUSSIAN_RUBLE, DB_CURRENCY_SERBIAN_DINAR, DB_CURRENCY_SWEDISH_KRONA, DB_CURRENCY_SWISS_FRANC, DB_CURRENCY_TL, DB_CURRENCY_VIETNAMESE_DONG, DB_CURRENCY_WON, DB_CURRENCY_YEN, db_date_decode(), db_datetime_decode(), db_time_decode(), DB_TYPE_BIGINT, DB_TYPE_DATE, DB_TYPE_DATETIME, DB_TYPE_DATETIMELTZ, DB_TYPE_DATETIMETZ, DB_TYPE_DOUBLE, DB_TYPE_FLOAT, DB_TYPE_INTEGER, DB_TYPE_MONETARY, DB_TYPE_SHORT, DB_TYPE_TIME, DB_TYPE_TIMESTAMP, DB_TYPE_TIMESTAMPLTZ, DB_TYPE_TIMESTAMPTZ, db_data::f, db_data::i, db_data::money, db_data::sh, db_data::time, db_timestamptz::timestamp, db_data::timestamptz, db_monetary::type, db_timestamptz::tz_id, db_datetimetz::tz_id, and db_data::utime.
int db_set_page_size | ( | INT16 | io_page_size, |
INT16 | log_page_size | ||
) |
Definition at line 96 of file storage_common.c.
References assert, db_Io_page_size, db_Log_page_size, db_User_page_size, ER_FAILED, find_valid_page_size(), IO_MIN_PAGE_SIZE, NO_ERROR, and RESERVED_SIZE_IN_PAGE.
Referenced by boot_initialize_client(), boot_restart_client(), log_get_io_page_size(), log_initialize_internal(), logpb_delete(), logpb_find_header_parameters(), logpb_restore(), patchdb(), xboot_emergency_patch(), and xboot_initialize_server().
Definition at line 577 of file storage_common.c.
References F_BENCHMARK, F_CLASS_OF, F_ELT, 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_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_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_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_VAR_POP, PT_VAR_SAMP, and PT_VARIANCE.
Referenced by func_type::Node::invalid_coll_error(), func_type::Node::preprocess(), pt_check_data_default(), pt_check_filter_index_expr_pre(), pt_check_function_collation(), pt_eval_function_type_new(), pt_eval_function_type_old(), pt_print_function(), and qo_plan_print_analytic_eval().
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().
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().
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().
int recdes_allocate_data_area | ( | RECDES * | rec, |
int | size | ||
) |
Definition at line 342 of file storage_common.c.
References recdes::area_size, recdes::data, db_private_alloc, ER_FAILED, NO_ERROR, and NULL.
Referenced by catalog_add_class_info(), catalog_drop_all(), catalog_drop_all_representation_and_class(), catalog_drop_old_representations(), catalog_drop_representation_helper(), catalog_drop_representation_item(), and catalog_put_representation_item().
void recdes_free_data_area | ( | RECDES * | rec | ) |
Definition at line 359 of file storage_common.c.
References recdes::data, db_private_free_and_init, and NULL.
Referenced by catalog_add_class_info(), catalog_drop_all(), catalog_drop_all_representation_and_class(), catalog_drop_old_representations(), catalog_drop_representation_helper(), catalog_drop_representation_item(), and catalog_put_representation_item().
void recdes_set_data_area | ( | RECDES * | rec, |
char * | data, | ||
int | size | ||
) |
Definition at line 365 of file storage_common.c.
References recdes::area_size, and recdes::data.
Referenced by catalog_get_class_info(), catalog_initialize_new_page(), catalog_put_representation_item(), catalog_rv_insert_redo(), catalog_rv_new_page_redo(), catalog_rv_update(), and catalog_update_class_info().
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().
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().
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().
LOCK lock_Conv[12][12] |
Definition at line 179 of file lock_table.c.
Referenced by heap_scan_pb_lock_and_fetch_debug(), locator_add_class(), locator_cache_lock(), locator_cache_lock_lockhint_classes(), locator_cache_lock_set(), locator_can_skip_fetch_from_server(), locator_fun_get_all_mops(), locator_guess_sub_classes(), locator_keep_mops(), locator_lock(), locator_lock_and_doesexist(), locator_lock_class_of_instance(), locator_lock_nested(), locator_lock_set(), locator_lockhint_classes(), lock_demote_class_lock(), lock_has_lock_on_object(), pt_spec_to_xasl_class_oid_list(), vid_build_non_upd_object(), and xlocator_find_lockhint_class_oids().
Definition at line 1164 of file storage_common.h.
const int SM_MAX_STRING_LENGTH |
Definition at line 69 of file class_object.c.