24#ifndef TABLE_PROCESSLIST_H
25#define TABLE_PROCESSLIST_H
118 int rnd_init(
bool scan [[maybe_unused]])
override;
120 int index_init(uint idx,
bool sorted)
override;
122 bool read_all)
override;
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:70
Definition: table_processlist.h:79
PFS_index_processlist_by_processlist_id()
Definition: table_processlist.h:81
bool match(PFS_thread *pfs) override
Definition: table_processlist.cc:134
PFS_key_processlist_id m_key
Definition: table_processlist.h:89
~PFS_index_processlist_by_processlist_id() override=default
Definition: cursor_by_thread.h:42
Definition: table_helper.h:1309
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:40
Cursor CURSOR_BY_THREAD.
Definition: cursor_by_thread.h:55
Table PERFORMANCE_SCHEMA.PROCESSLIST.
Definition: table_processlist.h:108
int rnd_init(bool scan) override
Initialize table scan.
Definition: table_processlist.cc:129
row_processlist m_row
Current row.
Definition: table_processlist.h:135
table_processlist()
Definition: table_processlist.cc:95
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Read the current row values.
Definition: table_processlist.cc:319
static PFS_engine_table_share m_share
Table share.
Definition: table_processlist.h:111
row_priv_processlist m_row_priv
Row privileges.
Definition: table_processlist.h:137
~table_processlist() override=default
int index_init(uint idx, bool sorted) override
Definition: table_processlist.cc:143
int set_access()
Definition: table_processlist.cc:99
static Plugin_table m_table_def
Table definition.
Definition: table_processlist.h:133
static THR_LOCK m_table_lock
Table share lock.
Definition: table_processlist.h:131
static PFS_engine_table * create(PFS_engine_table_share *)
Table builder.
Definition: table_processlist.cc:91
int make_row(PFS_thread *pfs) override
Definition: table_processlist.cc:158
Cursor CURSOR_BY_THREAD (declarations).
Common definition used by mysys, performance schema and server & client.
static constexpr int HOST_AND_PORT_LENGTH
Length of "hostname:portnumber".
Definition: my_hostname.h:55
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:56
#define USERNAME_LENGTH
Definition: mysql_com.h:69
static PFS_engine_table_share_proxy table
Definition: pfs.cc:61
Definition: buf0block_hint.cc:30
Data types for columns used in the performance schema tables (declarations)
Object names (declarations).
static const LEX_CSTRING pfs
Definition: sql_show_processlist.cc:66
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:358
Definition: pfs_name.h:188
Instrumented thread implementation.
Definition: pfs_instr.h:375
Definition: pfs_name.h:472
Definition: thr_lock.h:139
Definition: table_processlist.h:101
char m_priv_user[USERNAME_LENGTH]
Definition: table_processlist.h:103
size_t m_priv_user_length
Definition: table_processlist.h:104
enum enum_priv_processlist m_auth
Definition: table_processlist.h:102
A row of PERFORMANCE_SCHEMA.PROCESSLIST.
Definition: table_processlist.h:52
uint m_hostname_length
Length in bytes of m_hostname.
Definition: table_processlist.h:60
PFS_schema_name m_db_name
Column DB.
Definition: table_processlist.h:62
PFS_user_name m_user_name
Column USER.
Definition: table_processlist.h:56
uint m_processlist_state_length
Length in bytes of m_processlist_state_ptr.
Definition: table_processlist.h:70
int m_command
Column COMMAND.
Definition: table_processlist.h:64
time_t m_start_time
Column TIME.
Definition: table_processlist.h:66
const char * m_processlist_info_ptr
Column INFO.
Definition: table_processlist.h:72
char m_hostname[HOST_AND_PORT_LENGTH]
Column HOST (and PORT).
Definition: table_processlist.h:58
ulonglong m_processlist_id
Column ID.
Definition: table_processlist.h:54
const char * m_processlist_state_ptr
Column STATE.
Definition: table_processlist.h:68
bool m_secondary
Column EXECUTION_ENGINE.
Definition: table_processlist.h:76
uint m_processlist_info_length
Length in bytes of m_processlist_info_ptr.
Definition: table_processlist.h:74
Include file for Sun RPC to compile out of the box.