8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 21:23:03 +01:00

Restored the legacy order of relations, thanks to Adriano.

Added comments to highlight that issue.
This commit is contained in:
dimitr 2009-10-23 01:13:29 +00:00
parent c31a050282
commit a69d57fc49

View File

@ -21,20 +21,26 @@
* Contributor(s): ______________________________________.
*/
// Persistent tables
// Order of relations in this file affect their IDs,
// so please add new relations to the end of the list
// Relation 0 (RDB$PAGES)
RELATION(nam_pages, rel_pages, ODS_8_0, rel_persistent)
FIELD(f_pag_page, nam_p_number, fld_p_number, 0, ODS_8_0)
FIELD(f_pag_id, nam_r_id, fld_r_id, 0, ODS_8_0)
FIELD(f_pag_seq, nam_p_sequence, fld_p_sequence, 0, ODS_8_0)
FIELD(f_pag_type, nam_p_type, fld_p_type, 0, ODS_8_0)
END_RELATION
// Relation 1 (RDB$DATABASE)
RELATION(nam_database, rel_database, ODS_8_0, rel_persistent)
FIELD(f_dat_desc, nam_description, fld_description, 1, ODS_8_0)
FIELD(f_dat_id, nam_r_id, fld_r_id, 0, ODS_8_0)
FIELD(f_dat_class, nam_class, fld_class, 1, ODS_8_0)
FIELD(f_dat_charset, nam_charset_name, fld_charset_name, 1, ODS_8_0)
END_RELATION
// Relation 2 (RDB$FIELDS)
RELATION(nam_fields, rel_fields, ODS_8_0, rel_persistent)
FIELD(f_fld_name, nam_f_name, fld_f_name, 1, ODS_8_0)
FIELD(f_fld_qname, nam_q_name, fld_f_name, 1, ODS_8_0)
@ -65,12 +71,16 @@ RELATION(nam_fields, rel_fields, ODS_8_0, rel_persistent)
FIELD(f_fld_charset_id, nam_charset_id, fld_charset_id, 1, ODS_8_0)
FIELD(f_fld_precision, nam_f_precision, fld_f_precision, 1, ODS_10_0)
END_RELATION
// Relation 3 (RDB$INDEX_SEGMENTS)
RELATION(nam_i_segments, rel_segments, ODS_8_0, rel_persistent)
FIELD(f_seg_name, nam_i_name, fld_i_name, 1, ODS_8_0)
FIELD(f_seg_field, nam_f_name, fld_f_name, 1, ODS_8_0)
FIELD(f_seg_position, nam_f_position, fld_f_position, 1, ODS_8_0)
FIELD(f_seg_statistics, nam_statistics, fld_statistics, 1, ODS_11_0)
END_RELATION
// Relation 4 (RDB$INDICES)
RELATION(nam_indices, rel_indices, ODS_8_0, rel_persistent)
FIELD(f_idx_name, nam_i_name, fld_i_name, 1, ODS_8_0)
FIELD(f_idx_relation, nam_r_name, fld_r_name, 1, ODS_8_0)
@ -86,6 +96,8 @@ RELATION(nam_indices, rel_indices, ODS_8_0, rel_persistent)
FIELD(f_idx_exp_source, nam_exp_source, fld_source, 1, ODS_8_0)
FIELD(f_idx_statistics, nam_statistics, fld_statistics, 1, ODS_8_0)
END_RELATION
// Relation 5 (RDB$RELATION_FIELDS)
RELATION(nam_r_fields, rel_rfr, ODS_8_0, rel_persistent)
FIELD(f_rfr_fname, nam_f_name, fld_f_name, 1, ODS_8_0)
FIELD(f_rfr_rname, nam_r_name, fld_r_name, 1, ODS_8_0)
@ -107,6 +119,8 @@ RELATION(nam_r_fields, rel_rfr, ODS_8_0, rel_persistent)
FIELD(f_rfr_dsource, nam_d_source, fld_source, 1, ODS_8_0)
FIELD(f_rfr_coll_id, nam_collate_id, fld_collate_id, 1, ODS_8_0)
END_RELATION
// Relation 6 (RDB$RELATIONS)
RELATION(nam_relations, rel_relations, ODS_8_0, rel_persistent)
FIELD(f_rel_blr, nam_v_blr, fld_v_blr, 1, ODS_8_0)
FIELD(f_rel_source, nam_v_source, fld_source, 1, ODS_8_0)
@ -126,22 +140,30 @@ RELATION(nam_relations, rel_relations, ODS_8_0, rel_persistent)
FIELD(f_rel_flags, nam_flags, fld_flag, 0, ODS_8_0)
FIELD(f_rel_type, nam_r_type, fld_r_type, 0, ODS_11_1)
END_RELATION
// Relation 7 (RDB$VIEW_RELATIONS)
RELATION(nam_v_relations, rel_vrel, ODS_8_0, rel_persistent)
FIELD(f_vrl_vname, nam_v_name, fld_r_name, 1, ODS_8_0)
FIELD(f_vrl_rname, nam_r_name, fld_r_name, 1, ODS_8_0)
FIELD(f_vrl_context, nam_v_context, fld_context, 1, ODS_8_0)
FIELD(f_vrl_cname, nam_context, fld_ctx_name, 1, ODS_8_0)
END_RELATION
// Relation 8 (RDB$FORMATS)
RELATION(nam_formats, rel_formats, ODS_8_0, rel_persistent)
FIELD(f_fmt_rid, nam_r_id, fld_r_id, 0, ODS_8_0)
FIELD(f_fmt_format, nam_fmt, fld_format, 0, ODS_8_0)
FIELD(f_fmt_desc, nam_desc, fld_f_descr, 0, ODS_8_0)
END_RELATION
// Relation 9 (RDB$SECURITY_CLASSES)
RELATION(nam_classes, rel_classes, ODS_8_0, rel_persistent)
FIELD(f_cls_class, nam_class, fld_class, 1, ODS_8_0)
FIELD(f_cls_acl, nam_acl, fld_acl, 1, ODS_8_0)
FIELD(f_cls_desc, nam_description, fld_description, 1, ODS_8_0)
END_RELATION
// Relation 10 (RDB$FILES)
RELATION(nam_files, rel_files, ODS_8_0, rel_persistent)
FIELD(f_file_name, nam_file_name, fld_file_name, 1, ODS_8_0)
FIELD(f_file_seq, nam_file_seq, fld_file_seq, 1, ODS_8_0)
@ -150,6 +172,8 @@ RELATION(nam_files, rel_files, ODS_8_0, rel_persistent)
FIELD(f_file_flags, nam_file_flags, fld_file_flags, 1, ODS_8_0)
FIELD(f_file_shad_num, nam_shad_num, fld_shad_num, 1, ODS_8_0)
END_RELATION
// Relation 11 (RDB$TYPES)
RELATION(nam_types, rel_types, ODS_8_0, rel_persistent)
FIELD(f_typ_field, nam_f_name, fld_f_name, 1, ODS_8_0)
FIELD(f_typ_type, nam_type, fld_gnr_type, 1, ODS_8_0)
@ -157,6 +181,8 @@ RELATION(nam_types, rel_types, ODS_8_0, rel_persistent)
FIELD(f_typ_desc, nam_description, fld_description, 1, ODS_8_0)
FIELD(f_typ_sys_flag, nam_sys_flag, fld_flag, 1, ODS_8_0)
END_RELATION
// Relation 12 (RDB$TRIGGERS)
RELATION(nam_trgs, rel_triggers, ODS_8_0, rel_persistent)
FIELD(f_trg_name, nam_trg_name, fld_trg_name, 1, ODS_8_0)
FIELD(f_trg_rname, nam_r_name, fld_r_name, 1, ODS_8_0)
@ -173,6 +199,8 @@ RELATION(nam_trgs, rel_triggers, ODS_8_0, rel_persistent)
FIELD(f_trg_engine_name, nam_engine_name, fld_engine_name, 1, ODS_12_0)
FIELD(f_trg_entry, nam_entry, fld_ext_name, 1, ODS_12_0)
END_RELATION
// Relation 13 (RDB$DEPENDENCIES)
RELATION(nam_dpds, rel_dpds, ODS_8_0, rel_persistent)
FIELD(f_dpd_name, nam_dpd_name, fld_gnr_name, 1, ODS_8_0)
FIELD(f_dpd_o_name, nam_dpd_o_name, fld_gnr_name, 1, ODS_8_0)
@ -181,6 +209,8 @@ RELATION(nam_dpds, rel_dpds, ODS_8_0, rel_persistent)
FIELD(f_dpd_o_type, nam_dpd_o_type, fld_obj_type, 1, ODS_8_0)
FIELD(f_dpd_pkg_name, nam_pkg_name, fld_pkg_name, 1, ODS_12_0)
END_RELATION
// Relation 14 (RDB$FUNCTIONS)
RELATION(nam_funs, rel_funs, ODS_8_0, rel_persistent)
FIELD(f_fun_name, nam_fun_name, fld_fun_name, 1, ODS_8_0)
FIELD(f_fun_type, nam_fun_type, fld_fun_type, 1, ODS_8_0)
@ -195,6 +225,8 @@ RELATION(nam_funs, rel_funs, ODS_8_0, rel_persistent)
FIELD(f_fun_private_flag, nam_private_flag, fld_flag, 1, ODS_12_0)
FIELD(f_fun_source, nam_fun_source, fld_source, 1, ODS_12_0)
END_RELATION
// Relation 15 (RDB$FUNCTION_ARGUMENTS)
RELATION(nam_args, rel_args, ODS_8_0, rel_persistent)
FIELD(f_arg_fun_name, nam_fun_name, fld_fun_name, 1, ODS_8_0)
FIELD(f_arg_pos, nam_arg_pos, fld_f_position, 1, ODS_8_0)
@ -208,6 +240,8 @@ RELATION(nam_args, rel_args, ODS_8_0, rel_persistent)
FIELD(f_arg_char_length, nam_char_length, fld_f_length, 1, ODS_10_0)
FIELD(f_arg_pkg_name, nam_pkg_name, fld_pkg_name, 1, ODS_12_0)
END_RELATION
// Relation 16 (RDB$FILTERS)
RELATION(nam_filters, rel_filters, ODS_8_0, rel_persistent)
FIELD(f_flt_name, nam_fun_name, fld_fun_name, 1, ODS_8_0)
FIELD(f_flt_desc, nam_description, fld_description, 1, ODS_8_0)
@ -217,11 +251,15 @@ RELATION(nam_filters, rel_filters, ODS_8_0, rel_persistent)
FIELD(f_flt_output, nam_out_type, fld_sub_type, 1, ODS_8_0)
FIELD(f_flt_sys_flag, nam_sys_flag, fld_flag, 0, ODS_8_0)
END_RELATION
// Relation 17 (RDB$TRIGGER_MESSAGES)
RELATION(nam_trg_msgs, rel_msgs, ODS_8_0, rel_persistent)
FIELD(f_msg_trigger, nam_trg_name, fld_trg_name, 1, ODS_8_0)
FIELD(f_msg_number, nam_msg_num, fld_msg_num, 1, ODS_8_0)
FIELD(f_msg_msg, nam_msg, fld_msg, 1, ODS_8_0)
END_RELATION
// Relation 18 (RDB$USER_PRIVILEGES)
RELATION(nam_user_privileges, rel_priv, ODS_8_0, rel_persistent)
FIELD(f_prv_user, nam_user, fld_user, 1, ODS_8_0)
FIELD(f_prv_grantor, nam_grantor, fld_user, 1, ODS_8_0)
@ -232,24 +270,32 @@ RELATION(nam_user_privileges, rel_priv, ODS_8_0, rel_persistent)
FIELD(f_prv_u_type, nam_user_type, fld_obj_type, 1, ODS_8_0)
FIELD(f_prv_o_type, nam_obj_type, fld_obj_type, 1, ODS_8_0)
END_RELATION
// Relation 19 (RDB$TRANSACTIONS)
RELATION(nam_trans, rel_trans, ODS_8_0, rel_persistent)
FIELD(f_trn_id, nam_trans_id, fld_trans_id, 1, ODS_8_0)
FIELD(f_trn_state, nam_trans_state, fld_trans_state, 1, ODS_8_0)
FIELD(f_trn_time, nam_time, fld_time, 1, ODS_8_0)
FIELD(f_trn_desc, nam_trans_desc, fld_trans_desc, 1, ODS_8_0)
END_RELATION
// Relation 20 (RDB$GENERATORS)
RELATION(nam_gens, rel_gens, ODS_8_0, rel_persistent)
FIELD(f_gen_name, nam_gen_name, fld_gen_name, 1, ODS_8_0)
FIELD(f_gen_id, nam_gen_id, fld_gen_id, 1, ODS_8_0)
FIELD(f_gen_sys_flag, nam_sys_flag, fld_flag, 1, ODS_8_0)
FIELD(f_gen_desc, nam_description, fld_description, 1, ODS_11_0)
END_RELATION
// Relation 21 (RDB$FIELD_DIMENSIONS)
RELATION(nam_fld_dims, rel_dims, ODS_8_0, rel_persistent)
FIELD(f_dims_fname, nam_f_name, fld_f_name, 1, ODS_8_0)
FIELD(f_dims_dim, nam_dim, fld_dim, 1, ODS_8_0)
FIELD(f_dims_lower, nam_lower, fld_bound, 1, ODS_8_0)
FIELD(f_dims_upper, nam_upper, fld_bound, 1, ODS_8_0)
END_RELATION
// Relation 22 (RDB$RELATION_CONSTRAINTS)
RELATION(nam_rel_constr, rel_rcon, ODS_8_0, rel_persistent)
FIELD(f_rcon_cname, nam_con_name, fld_con_name, 1, ODS_8_0)
FIELD(f_rcon_ctype, nam_con_type, fld_con_type, 1, ODS_8_0)
@ -258,6 +304,8 @@ RELATION(nam_rel_constr, rel_rcon, ODS_8_0, rel_persistent)
FIELD(f_rcon_idfr, nam_init_defer, fld_defer, 1, ODS_8_0)
FIELD(f_rcon_iname, nam_i_name, fld_i_name, 1, ODS_8_0)
END_RELATION
// Relation 23 (RDB$REF_CONSTRAINTS)
RELATION(nam_ref_constr, rel_refc, ODS_8_0, rel_persistent)
FIELD(f_refc_cname, nam_con_name, fld_con_name, 1, ODS_8_0)
FIELD(f_refc_uq, nam_con_uq, fld_con_name, 1, ODS_8_0)
@ -265,10 +313,14 @@ RELATION(nam_ref_constr, rel_refc, ODS_8_0, rel_persistent)
FIELD(f_refc_upd_rul, nam_upd_rule, fld_rule, 1, ODS_8_0)
FIELD(f_refc_del_rul, nam_del_rule, fld_rule, 1, ODS_8_0)
END_RELATION
// Relation 24 (RDB$CHECK_CONSTRAINTS)
RELATION(nam_chk_constr, rel_ccon, ODS_8_0, rel_persistent)
FIELD(f_ccon_cname, nam_con_name, fld_con_name, 1, ODS_8_0)
FIELD(f_ccon_tname, nam_trg_name, fld_trg_name, 1, ODS_8_0)
END_RELATION
// Relation 25 (RDB$LOG_FILES)
RELATION(nam_log_files, rel_log, ODS_8_0, rel_persistent)
FIELD(f_log_name, nam_file_name, fld_file_name, 1, ODS_8_0)
FIELD(f_log_seq, nam_file_seq, fld_file_seq, 1, ODS_8_0)
@ -277,6 +329,8 @@ RELATION(nam_log_files, rel_log, ODS_8_0, rel_persistent)
FIELD(f_log_p_offset, nam_file_p_offset, fld_file_p_offset, 1, ODS_8_0)
FIELD(f_log_flags, nam_file_flags, fld_file_flags, 1, ODS_8_0)
END_RELATION
// Relation 26 (RDB$PROCEDURES)
RELATION(nam_procedures, rel_procedures, ODS_8_0, rel_persistent)
FIELD(f_prc_name, nam_prc_name, fld_prc_name, 1, ODS_8_0)
FIELD(f_prc_id, nam_prc_id, fld_prc_id, 0, ODS_8_0)
@ -297,6 +351,8 @@ RELATION(nam_procedures, rel_procedures, ODS_8_0, rel_persistent)
FIELD(f_prc_pkg_name, nam_pkg_name, fld_pkg_name, 1, ODS_12_0)
FIELD(f_prc_private_flag, nam_private_flag, fld_flag, 1, ODS_12_0)
END_RELATION
// Relation 27 (RDB$PROCEDURE_PARAMETERS)
RELATION(nam_proc_parameters, rel_prc_prms, ODS_8_0, rel_persistent)
FIELD(f_prm_name, nam_prm_name, fld_prm_name, 1, ODS_8_0)
FIELD(f_prm_procedure, nam_prc_name, fld_prc_name, 1, ODS_8_0)
@ -314,6 +370,8 @@ RELATION(nam_proc_parameters, rel_prc_prms, ODS_8_0, rel_persistent)
FIELD(f_prm_rname, nam_r_name, fld_r_name, 1, ODS_11_2)
FIELD(f_prm_pkg_name, nam_pkg_name, fld_pkg_name, 1, ODS_12_0)
END_RELATION
// Relation 28 (RDB$CHARACTER_SETS)
RELATION(nam_charsets, rel_charsets, ODS_8_0, rel_persistent)
FIELD(f_cs_cs_name, nam_charset_name, fld_charset_name, 1, ODS_8_0)
FIELD(f_cs_form_of_use, nam_form_of_use, fld_gnr_name, 1, ODS_8_0)
@ -325,6 +383,8 @@ RELATION(nam_charsets, rel_charsets, ODS_8_0, rel_persistent)
FIELD(f_cs_fun_name, nam_fun_name, fld_fun_name, 1, ODS_8_0)
FIELD(f_cs_bytes_char, nam_bytes_per_char, fld_f_length, 1, ODS_8_0)
END_RELATION
// Relation 29 (RDB$COLLATIONS)
RELATION(nam_collations, rel_collations, ODS_8_0, rel_persistent)
FIELD(f_coll_name, nam_collate_name, fld_collate_name, 1, ODS_8_0)
FIELD(f_coll_id, nam_collate_id, fld_collate_id, 1, ODS_8_0)
@ -336,6 +396,8 @@ RELATION(nam_collations, rel_collations, ODS_8_0, rel_persistent)
FIELD(f_coll_base_collation_name, nam_base_collation_name, fld_collate_name, 1, ODS_11_0)
FIELD(f_coll_specific_attr, nam_specific_attr, fld_specific_attr, 1, ODS_11_0)
END_RELATION
// Relation 30 (RDB$EXCEPTIONS)
RELATION(nam_exceptions, rel_exceptions, ODS_8_0, rel_persistent)
FIELD(f_xcp_name, nam_xcp_name, fld_xcp_name, 1, ODS_8_0)
FIELD(f_xcp_number, nam_xcp_number, fld_xcp_number, 1, ODS_8_0)
@ -343,12 +405,16 @@ RELATION(nam_exceptions, rel_exceptions, ODS_8_0, rel_persistent)
FIELD(f_xcp_desc, nam_description, fld_description, 1, ODS_8_0)
FIELD(f_xcp_sys_flag, nam_sys_flag, fld_flag, 1, ODS_8_0)
END_RELATION
// Relation 31 (RDB$ROLES)
RELATION(nam_roles, rel_roles, ODS_9_0, rel_persistent)
FIELD(f_rol_name, nam_role_name, fld_user, 1, ODS_9_0)
FIELD(f_rol_owner, nam_owner, fld_user, 1, ODS_9_0)
FIELD(f_rol_desc, nam_description, fld_description, 1, ODS_11_0)
FIELD(f_rol_sys_flag, nam_sys_flag, fld_flag, 1, ODS_11_0)
END_RELATION
// Relation 32 (RDB$BACKUP_HISTORY)
RELATION(nam_backup_history, rel_backup_history, ODS_11_0, rel_persistent)
FIELD(f_backup_id, nam_backup_id, fld_backup_id, 1, ODS_11_0)
FIELD(f_backup_time, nam_time, fld_time, 1, ODS_11_0)
@ -357,18 +423,8 @@ RELATION(nam_backup_history, rel_backup_history, ODS_11_0, rel_persistent)
FIELD(f_backup_scn, nam_scn, fld_scn, 1, ODS_11_0)
FIELD(f_backup_name, nam_file_name, fld_file_name, 1, ODS_11_0)
END_RELATION
RELATION(nam_packages, rel_packages, ODS_12_0, rel_persistent)
FIELD(f_pkg_name, nam_pkg_name, fld_pkg_name, 1, ODS_12_0)
FIELD(f_pkg_header_source, nam_pkg_header_source, fld_source, 1, ODS_12_0)
FIELD(f_pkg_body_source, nam_pkg_body_source, fld_source, 1, ODS_12_0)
FIELD(f_pkg_class, nam_class, fld_class, 1, ODS_12_0)
FIELD(f_pkg_owner, nam_owner, fld_user, 1, ODS_12_0)
FIELD(f_pkg_sys_flag, nam_sys_flag, fld_flag, 1, ODS_12_0)
FIELD(f_pkg_desc, nam_description, fld_description, 1, ODS_12_0)
END_RELATION
// Virtual tables
// Relation 33 (MON$DATABASE)
RELATION(nam_mon_database, rel_mon_database, ODS_11_1, rel_virtual)
FIELD(f_mon_db_name, nam_mon_db_name, fld_file_name2, 0, ODS_11_1)
FIELD(f_mon_db_page_size, nam_mon_page_size, fld_page_size, 0, ODS_11_1)
@ -390,6 +446,8 @@ RELATION(nam_mon_database, rel_mon_database, ODS_11_1, rel_virtual)
FIELD(f_mon_db_stat_id, nam_mon_stat_id, fld_stat_id, 0, ODS_11_1)
FIELD(f_mon_db_backup_state, nam_mon_backup_state, fld_backup_state, 0, ODS_11_1)
END_RELATION
// Relation 34 (MON$ATTACHMENTS)
RELATION(nam_mon_attachments, rel_mon_attachments, ODS_11_1, rel_virtual)
FIELD(f_mon_att_id, nam_mon_att_id, fld_att_id, 0, ODS_11_1)
FIELD(f_mon_att_server_pid, nam_mon_server_pid, fld_pid, 0, ODS_11_1)
@ -406,6 +464,8 @@ RELATION(nam_mon_attachments, rel_mon_attachments, ODS_11_1, rel_virtual)
FIELD(f_mon_att_remote_process, nam_mon_remote_process, fld_file_name2, 0, ODS_11_1)
FIELD(f_mon_att_stat_id, nam_mon_stat_id, fld_stat_id, 0, ODS_11_1)
END_RELATION
// Relation 35 (MON$TRANSACTIONS)
RELATION(nam_mon_transactions, rel_mon_transactions, ODS_11_1, rel_virtual)
FIELD(f_mon_tra_id, nam_mon_tra_id, fld_trans_id, 0, ODS_11_1)
FIELD(f_mon_tra_att_id, nam_mon_att_id, fld_att_id, 0, ODS_11_1)
@ -421,6 +481,8 @@ RELATION(nam_mon_transactions, rel_mon_transactions, ODS_11_1, rel_virtual)
FIELD(f_mon_tra_auto_undo, nam_mon_auto_undo, fld_flag, 0, ODS_11_1)
FIELD(f_mon_tra_stat_id, nam_mon_stat_id, fld_stat_id, 0, ODS_11_1)
END_RELATION
// Relation 36 (MON$STATEMENTS)
RELATION(nam_mon_statements, rel_mon_statements, ODS_11_1, rel_virtual)
FIELD(f_mon_stmt_id, nam_mon_stmt_id, fld_stmt_id, 0, ODS_11_1)
FIELD(f_mon_stmt_att_id, nam_mon_att_id, fld_att_id, 0, ODS_11_1)
@ -430,6 +492,8 @@ RELATION(nam_mon_statements, rel_mon_statements, ODS_11_1, rel_virtual)
FIELD(f_mon_stmt_sql_text, nam_mon_sql_text, fld_source, 0, ODS_11_1)
FIELD(f_mon_stmt_stat_id, nam_mon_stat_id, fld_stat_id, 0, ODS_11_1)
END_RELATION
// Relation 37 (MON$CALL_STACK)
RELATION(nam_mon_calls, rel_mon_calls, ODS_11_1, rel_virtual)
FIELD(f_mon_call_id, nam_mon_call_id, fld_call_id, 0, ODS_11_1)
FIELD(f_mon_call_stmt_id, nam_mon_stmt_id, fld_stmt_id, 0, ODS_11_1)
@ -442,6 +506,8 @@ RELATION(nam_mon_calls, rel_mon_calls, ODS_11_1, rel_virtual)
FIELD(f_mon_call_stat_id, nam_mon_stat_id, fld_stat_id, 0, ODS_11_1)
FIELD(f_mon_call_pkg_name, nam_mon_pkg_name, fld_pkg_name, 0, ODS_12_0)
END_RELATION
// Relation 38 (MON$IO_STATS)
RELATION(nam_mon_io_stats, rel_mon_io_stats, ODS_11_1, rel_virtual)
FIELD(f_mon_io_stat_id, nam_mon_stat_id, fld_stat_id, 0, ODS_11_1)
FIELD(f_mon_io_stat_group, nam_mon_stat_group, fld_stat_group, 0, ODS_11_1)
@ -450,6 +516,8 @@ RELATION(nam_mon_io_stats, rel_mon_io_stats, ODS_11_1, rel_virtual)
FIELD(f_mon_io_page_fetches, nam_mon_page_fetches, fld_counter, 0, ODS_11_1)
FIELD(f_mon_io_page_marks, nam_mon_page_marks, fld_counter, 0, ODS_11_1)
END_RELATION
// Relation 39 (MON$RECORD_STATS)
RELATION(nam_mon_rec_stats, rel_mon_rec_stats, ODS_11_1, rel_virtual)
FIELD(f_mon_rec_stat_id, nam_mon_stat_id, fld_stat_id, 0, ODS_11_1)
FIELD(f_mon_rec_stat_group, nam_mon_stat_group, fld_stat_group, 0, ODS_11_1)
@ -462,12 +530,16 @@ RELATION(nam_mon_rec_stats, rel_mon_rec_stats, ODS_11_1, rel_virtual)
FIELD(f_mon_rec_purges, nam_mon_rec_purges, fld_counter, 0, ODS_11_1)
FIELD(f_mon_rec_expunges, nam_mon_rec_expunges, fld_counter, 0, ODS_11_1)
END_RELATION
// Relation 40 (MON$CONTEXT_VARIABLES)
RELATION(nam_mon_ctx_vars, rel_mon_ctx_vars, ODS_11_2, rel_virtual)
FIELD(f_mon_ctx_var_att_id, nam_mon_att_id, fld_att_id, 0, ODS_11_2)
FIELD(f_mon_ctx_var_tra_id, nam_mon_tra_id, fld_trans_id, 0, ODS_11_2)
FIELD(f_mon_ctx_var_name, nam_mon_var_name, fld_ctx_var_name, 0, ODS_11_2)
FIELD(f_mon_ctx_var_value, nam_mon_var_value, fld_ctx_var_value, 0, ODS_11_2)
END_RELATION
// Relation 41 (MON$MEMORY_USAGE)
RELATION(nam_mon_mem_usage, rel_mon_mem_usage, ODS_11_2, rel_virtual)
FIELD(f_mon_mem_stat_id, nam_mon_stat_id, fld_stat_id, 0, ODS_11_2)
FIELD(f_mon_mem_stat_group, nam_mon_stat_group, fld_stat_group, 0, ODS_11_2)
@ -476,3 +548,14 @@ RELATION(nam_mon_mem_usage, rel_mon_mem_usage, ODS_11_2, rel_virtual)
FIELD(f_mon_mem_max_used, nam_mon_max_used, fld_counter, 0, ODS_11_2)
FIELD(f_mon_mem_max_alloc, nam_mon_max_alloc, fld_counter, 0, ODS_11_2)
END_RELATION
// Relation 42 (RDB$PACKAGES)
RELATION(nam_packages, rel_packages, ODS_12_0, rel_persistent)
FIELD(f_pkg_name, nam_pkg_name, fld_pkg_name, 1, ODS_12_0)
FIELD(f_pkg_header_source, nam_pkg_header_source, fld_source, 1, ODS_12_0)
FIELD(f_pkg_body_source, nam_pkg_body_source, fld_source, 1, ODS_12_0)
FIELD(f_pkg_class, nam_class, fld_class, 1, ODS_12_0)
FIELD(f_pkg_owner, nam_owner, fld_user, 1, ODS_12_0)
FIELD(f_pkg_sys_flag, nam_sys_flag, fld_flag, 1, ODS_12_0)
FIELD(f_pkg_desc, nam_description, fld_description, 1, ODS_12_0)
END_RELATION