97 {
"Magic_symbol",
"varchar(100)"},
98 {
"Io_page_size",
"short"},
99 {
"Purpose",
"varchar(24)"},
100 {
"Type",
"varchar(24)"},
101 {
"Sector_size_in_pages",
"int"},
102 {
"Num_total_sectors",
"int"},
103 {
"Num_free_sectors",
"int"},
104 {
"Num_max_sectors",
"int"},
105 {
"Hint_alloc_sector",
"int"},
106 {
"Sector_alloc_table_size_in_pages",
"int"},
107 {
"Sector_alloc_table_first_page",
"int"},
108 {
"Last_system_page",
"int"},
109 {
"Creation_time",
"datetime"},
110 {
"Db_charset",
"int"},
111 {
"Checkpoint_lsa",
"varchar(64)"},
112 {
"Boot_hfid",
"varchar(64)"},
113 {
"Full_name",
"varchar(255)"},
114 {
"Next_volume_id",
"int"},
115 {
"Next_vol_full_name",
"varchar(255)"},
116 {
"Remarks",
"varchar(64)"}
125 cols, DIM (cols),
NULL, 0, args, DIM (args),
NULL, NULL
134 {
"Volume_id",
"int"},
135 {
"Magic_symbol",
"varchar(32)"},
136 {
"Magic_symbol_location",
"int"},
137 {
"Creation_time",
"datetime"},
138 {
"Release",
"varchar(32)"},
139 {
"Compatibility_disk_version",
"varchar(32)"},
140 {
"Db_page_size",
"int"},
141 {
"Log_page_size",
"int"},
143 {
"Next_trans_id",
"int"},
144 {
"Num_avg_trans",
"int"},
145 {
"Num_avg_locks",
"int"},
146 {
"Num_active_log_pages",
"int"},
147 {
"Db_charset",
"int"},
148 {
"First_active_log_page",
"bigint"},
149 {
"Current_append",
"varchar(64)"},
150 {
"Checkpoint",
"varchar(64)"},
151 {
"Next_archive_page_id",
"bigint"},
152 {
"Active_physical_page_id",
"int"},
153 {
"Next_archive_num",
"int"},
154 {
"Last_archive_num_for_syscrashes",
"int"},
155 {
"Last_deleted_archive_num",
"int"},
156 {
"Backup_lsa_level0",
"varchar(64)"},
157 {
"Backup_lsa_level1",
"varchar(64)"},
158 {
"Backup_lsa_level2",
"varchar(64)"},
159 {
"Log_prefix",
"varchar(256)"},
160 {
"Has_logging_been_skipped",
"int"},
161 {
"Perm_status",
"varchar(64)"},
162 {
"Backup_info_level0",
"varchar(128)"},
163 {
"Backup_info_level1",
"varchar(128)"},
164 {
"Backup_info_level2",
"varchar(128)"},
165 {
"Ha_server_state",
"varchar(32)"},
166 {
"Ha_file",
"varchar(32)"},
167 {
"Eof_lsa",
"varchar(64)"},
168 {
"Smallest_lsa_at_last_checkpoint",
"varchar(64)"},
169 {
"Next_mvcc_id",
"bigint"},
170 {
"Mvcc_op_log_lsa",
"varchar(32)"},
171 {
"Last_block_oldest_mvcc_id",
"bigint"},
172 {
"Last_block_newest_mvcc_id",
"bigint"}
181 cols, DIM (cols),
NULL, 0, args, DIM (args),
NULL, NULL
191 {
"Volume_id",
"int"},
192 {
"Magic_symbol",
"varchar(32)"},
193 {
"Magic_symbol_location",
"int"},
194 {
"Creation_time",
"datetime"},
195 {
"Next_trans_id",
"bigint"},
196 {
"Num_pages",
"int"},
197 {
"First_page_id",
"bigint"},
198 {
"Archive_num",
"int"}
207 cols, DIM (cols),
NULL, 0, args, DIM (args),
NULL, NULL
217 {
"Volume_id",
"int"},
219 {
"Num_slots",
"int"},
220 {
"Num_records",
"int"},
221 {
"Anchor_type",
"varchar(32)"},
222 {
"Alignment",
"varchar(8)"},
223 {
"Total_free_area",
"int"},
224 {
"Contiguous_free_area",
"int"},
225 {
"Free_space_offset",
"int"},
226 {
"Need_update_best_hint",
"int"},
227 {
"Is_saving",
"int"},
238 cols, DIM (cols),
NULL, 0, args, DIM (args),
NULL, NULL
248 {
"Volume_id",
"int"},
252 {
"Type",
"varchar(32)"},
268 cols, DIM (cols), orderby, DIM (orderby), args, DIM (args),
NULL, NULL
278 {
"user_name",
"varchar(32)"},
279 {
"last_access_time",
"datetime"},
280 {
"last_access_host",
"varchar(32)"},
281 {
"program_name",
"varchar(32)"}
300 {
"Table_name",
"varchar(256)"},
301 {
"Class_oid",
"varchar(64)"},
302 {
"Volume_id",
"int"},
304 {
"Header_page_id",
"int"},
305 {
"Overflow_vfid",
"varchar(64)"},
306 {
"Next_vpid",
"varchar(64)"},
307 {
"Unfill_space",
"int"},
308 {
"Estimates_num_pages",
"bigint"},
309 {
"Estimates_num_recs",
"bigint"},
310 {
"Estimates_avg_rec_len",
"int"},
311 {
"Estimates_num_high_best",
"int"},
312 {
"Estimates_num_others_high_best",
"int"},
313 {
"Estimates_head",
"int"},
314 {
"Estimates_best_list",
"varchar(512)"},
315 {
"Estimates_num_second_best",
"int"},
316 {
"Estimates_head_second_best",
"int"},
317 {
"Estimates_tail_second_best",
"int"},
318 {
"Estimates_num_substitutions",
"int"},
319 {
"Estimates_second_best_list",
"varchar(256)"},
320 {
"Estimates_last_vpid",
"varchar(64)"},
321 {
"Estimates_full_search_vpid",
"varchar(64)"}
342 return (flag ==
SHOW_ALL) ? &md_all : &md_only;
349 {
"Table_name",
"varchar(256)"},
350 {
"Class_oid",
"varchar(64)"},
351 {
"Volume_id",
"int"},
353 {
"Header_page_id",
"int"},
354 {
"Num_recs",
"bigint"},
355 {
"Num_relocated_recs",
"bigint"},
356 {
"Num_overflowed_recs",
"bigint"},
357 {
"Num_pages",
"bigint"},
358 {
"Avg_rec_len",
"int"},
359 {
"Avg_free_space_per_page",
"int"},
360 {
"Avg_free_space_per_page_except_last_page",
"int"},
361 {
"Avg_overhead_per_page",
"int"},
363 {
"Num_total_attrs",
"int"},
364 {
"Num_fixed_width_attrs",
"int"},
365 {
"Num_variable_width_attrs",
"int"},
366 {
"Num_shared_attrs",
"int"},
367 {
"Num_class_attrs",
"int"},
368 {
"Total_size_fixed_width_attrs",
"int"}
389 return (flag ==
SHOW_ALL) ? &md_all : &md_only;
397 {
"Table_name",
"varchar(256)"},
398 {
"Index_name",
"varchar(256)"},
399 {
"Btid",
"varchar(64)"},
400 {
"Node_level",
"int"},
401 {
"Max_key_len",
"int"},
403 {
"Num_nulls",
"int"},
405 {
"Topclass_oid",
"varchar(64)"},
407 {
"Overflow_vfid",
"varchar(32)"},
408 {
"Key_type",
"varchar(256)"},
409 {
"Columns",
"varchar(256)"}
435 return (flag ==
SHOW_ALL) ? &md_all : &md_only;
443 {
"Table_name",
"varchar(256)"},
444 {
"Index_name",
"varchar(256)"},
445 {
"Btid",
"varchar(64)"},
446 {
"Num_distinct_key",
"int"},
447 {
"Total_value",
"int"},
448 {
"Avg_num_value_per_key",
"int"},
449 {
"Num_leaf_page",
"int"},
450 {
"Num_non_leaf_page",
"int"},
451 {
"Num_total_page",
"int"},
453 {
"Avg_key_len",
"int"},
454 {
"Avg_rec_len",
"int"},
455 {
"Total_space",
"varchar(64)"},
456 {
"Total_used_space",
"varchar(64)"},
457 {
"Total_free_space",
"varchar(64)"},
458 {
"Avg_num_page_key",
"int"},
459 {
"Avg_page_free_space",
"varchar(64)"}
485 return (flag ==
SHOW_ALL) ? &md_all : &md_only;
494 {
"Name",
"varchar(32)"},
495 {
"Num_holders",
"varchar(16)"},
496 {
"Num_waiting_readers",
"int"},
497 {
"Num_waiting_writers",
"int"},
498 {
"Owner_thread_index",
"int"},
499 {
"Owner_tran_index",
"int"},
500 {
"Total_enter_count",
"bigint"},
501 {
"Total_waiter_count",
"bigint"},
502 {
"Waiting_promoter_thread_index",
"int"},
503 {
"Max_waiting_msecs",
"numeric(10,3)"},
504 {
"Total_waiting_msecs",
"numeric(10,3)"}
513 cols, DIM (cols), orderby, DIM (orderby),
NULL, 0,
NULL, NULL
523 {
"Jobq_index",
"int"},
524 {
"Num_total_workers",
"int"},
525 {
"Num_busy_workers",
"int"},
526 {
"Num_connection_workers",
"int"}
535 cols, DIM (cols), orderby, DIM (orderby),
NULL, 0,
NULL, NULL
546 {
"timezone_region",
"varchar(32)"}
555 cols, DIM (cols), orderby, DIM (orderby),
NULL, 0,
NULL, NULL
566 {
"timezone_region",
"varchar(32)"},
567 {
"region_offset",
"varchar(32)"},
568 {
"dst_offset",
"varchar(32)"},
569 {
"dst_abbreviation",
"varchar(32)"}
578 cols, DIM (cols), orderby, DIM (orderby),
NULL, 0,
NULL, NULL
589 {
"Tran_index",
"int"},
591 {
"Is_loose_end",
"int"},
592 {
"State",
"varchar(64)"},
593 {
"Isolation",
"varchar(64)"},
594 {
"Wait_msecs",
"int"},
595 {
"Head_lsa",
"varchar(64)"},
596 {
"Tail_lsa",
"varchar(64)"},
597 {
"Undo_next_lsa",
"varchar(64)"},
598 {
"Postpone_next_lsa",
"varchar(64)"},
599 {
"Savepoint_lsa",
"varchar(64)"},
600 {
"Topop_lsa",
"varchar(64)"},
601 {
"Tail_top_result_lsa",
"varchar(64)"},
602 {
"Client_id",
"int"},
603 {
"Client_type",
"varchar(40)"},
604 {
"Client_info",
"varchar(256)"},
605 {
"Client_db_user",
"varchar(40)"},
606 {
"Client_program",
"varchar(256)"},
607 {
"Client_login_user",
"varchar(16)"},
608 {
"Client_host",
"varchar(64)"},
609 {
"Client_pid",
"int"},
610 {
"Topop_depth",
"int"},
611 {
"Num_unique_btrees",
"int"},
612 {
"Max_unique_btrees",
"int"},
613 {
"Interrupt",
"int"},
614 {
"Num_transient_classnames",
"int"},
615 {
"Repl_max_records",
"int"},
616 {
"Repl_records",
"varchar(20)"},
617 {
"Repl_current_index",
"int"},
618 {
"Repl_append_index",
"int"},
619 {
"Repl_flush_marked_index",
"int"},
620 {
"Repl_insert_lsa",
"varchar(64)"},
621 {
"Repl_update_lsa",
"varchar(64)"},
622 {
"First_save_entry",
"varchar(20)"},
623 {
"Tran_unique_stats",
"varchar(20)"},
624 {
"Modified_class_list",
"varchar(20)"},
625 {
"Num_temp_files",
"int"},
626 {
"Waiting_for_res",
"varchar(20)"},
627 {
"Has_deadlock_priority",
"int"},
628 {
"Suppress_replication",
"int"},
629 {
"Query_timeout",
"datetime"},
630 {
"Query_start_time",
"datetime"},
631 {
"Tran_start_time",
"datetime"},
632 {
"Xasl_id",
"varchar(64)"},
633 {
"Disable_modifications",
"int"},
634 {
"Abort_reason",
"varchar(40)"}
643 cols, DIM (cols), orderby, DIM (orderby),
NULL, 0,
NULL, NULL
654 {
"Jobq_index",
"int"},
655 {
"Thread_id",
"bigint"},
656 {
"Tran_index",
"int"},
657 {
"Type",
"varchar(8)"},
658 {
"Status",
"varchar(8)"},
659 {
"Resume_status",
"varchar(32)"},
660 {
"Net_request",
"varchar(64)"},
661 {
"Conn_client_id",
"int"},
662 {
"Conn_request_id",
"int"},
663 {
"Conn_index",
"int"},
664 {
"Last_error_code",
"int"},
665 {
"Last_error_msg",
"varchar(256)"},
666 {
"Private_heap_id",
"varchar(20)"},
667 {
"Query_entry",
"varchar(20)"},
668 {
"Interrupted",
"int"},
670 {
"Check_interrupt",
"int"},
671 {
"Wait_for_latch_promote",
"int"},
672 {
"Lockwait_blocked_mode",
"varchar(24)"},
673 {
"Lockwait_start_time",
"datetime"},
674 {
"Lockwait_msecs",
"int"},
675 {
"Lockwait_state",
"varchar(24)"},
676 {
"Next_wait_thread_index",
"int"},
677 {
"Next_tran_wait_thread_index",
"int"},
678 {
"Next_worker_thread_index",
"int"}
687 cols, DIM (cols), orderby, DIM (orderby),
NULL, 0,
NULL, NULL
696 {
"Hit_rate",
"numeric(13,10)"},
697 {
"Num_hit",
"bigint"},
698 {
"Num_page_request",
"bigint"},
699 {
"Pool_size",
"int"},
700 {
"Page_size",
"int"},
701 {
"Free_pages",
"int"},
702 {
"Victim_candidate_pages",
"int"},
703 {
"Clean_pages",
"int"},
704 {
"Dirty_pages",
"int"},
705 {
"Num_index_pages",
"int"},
706 {
"Num_data_pages",
"int"},
707 {
"Num_system_pages",
"int"},
708 {
"Num_temp_pages",
"int"},
709 {
"Num_pages_created",
"bigint"},
710 {
"Num_pages_written",
"bigint"},
711 {
"Pages_written_rate",
"numeric(20,10)"},
712 {
"Num_pages_read",
"bigint"},
713 {
"Pages_read_rate",
"numeric(20,10)"},
714 {
"Num_flusher_waiting_threads",
"int"}
723 cols, DIM (cols), orderby, DIM (orderby),
NULL, 0,
NULL, NULL
741 show_meta = show_Metas[show_type];
773 PT_NODE *show_args_node =
NULL, *spec, *derived_table;
777 const char *table_name =
NULL;
790 derived_table = spec->info.spec.derived_table;
793 show_type = derived_table->info.showstmt.show_type;
832 if (partition_node ==
NULL)
860 for (i = md->
num_cols - 1; i >= 0; i--)
874 att->domain = domain;
875 att->auto_increment =
NULL;
892 while (attrs !=
NULL)
922 while (attrs !=
NULL)
947 memset (show_Metas, 0,
sizeof (show_Metas));
971 for (i = 0; i < DIM (show_Metas); i++)
983 for (i = 0; i < DIM (show_Metas); i++)
1003 for (i = 0; i < DIM (show_Metas); i++)
1032 if (classop ==
NULL)
1058 const char *table_name =
NULL;
1059 const char *index_name =
NULL;
1117 show_args_node = show_args_node->
next;
1126 if (sm_all_constraints ==
NULL || sm_constraint ==
NULL)
1142 if (partition_node ==
NULL)
#define PT_ERRORm(parser, node, setNo, msgNo)
#define assert_release(e)
SM_CLASS_TYPE sm_get_class_type(SM_CLASS *class_)
bool au_is_dba_group_member(MOP user)
SM_CLASS_CONSTRAINT * classobj_find_constraint_by_name(SM_CLASS_CONSTRAINT *cons_list, const char *name)
union pt_query_info::@124 q
SM_CLASS_CONSTRAINT * sm_class_constraints(MOP classop)
#define ER_LC_UNKNOWN_CLASSNAME
#define DB_MAX_IDENTIFIER_LENGTH
PT_SHOWSTMT_INFO showstmt
void classobj_free_attribute(SM_ATTRIBUTE *att)
const char * er_msg(void)
TP_DOMAIN * tp_domain_cache(TP_DOMAIN *transient)
#define PT_ERRORc(parser, node, msg)
SM_ATTRIBUTE * classobj_make_attribute(const char *name, struct pr_type *type, SM_NAME_SPACE name_space)
DB_DOMAIN * pt_string_to_db_domain(const char *s, const char *class_name)
PT_NODE * pt_make_integer_value(PARSER_CONTEXT *parser, const int value_int)
PT_NODE * parser_append_node(PT_NODE *node, PT_NODE *list)
static void error(const char *msg)
int sm_partitioned_class_type(DB_OBJECT *classop, int *partition_type, char *keyattr, MOP **partitions)
static WHEN_DESC on_error
struct sm_attribute * order_link
#define PT_INTERNAL_ERROR(parser, what)
int db_make_oid(DB_VALUE *value, const OID *oid)
MOP sm_find_class(const char *name)
PT_NODE * pt_dbval_to_value(PARSER_CONTEXT *parser, const DB_VALUE *val)
#define ER_OBJ_NOT_A_CLASS
int au_fetch_class_force(MOP op, SM_CLASS **class_, AU_FETCHMODE fetchmode)
#define PT_ERRORmf(parser, node, setNo, msgNo, arg1)