23#ifndef TABLE_PROCESSLIST_H
24#define TABLE_PROCESSLIST_H
117 int rnd_init(
bool scan [[maybe_unused]])
override;
119 int index_init(uint idx,
bool sorted)
override;
121 bool read_all)
override;
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:69
Definition: table_processlist.h:78
PFS_index_processlist_by_processlist_id()
Definition: table_processlist.h:80
bool match(PFS_thread *pfs) override
Definition: table_processlist.cc:133
PFS_key_processlist_id m_key
Definition: table_processlist.h:88
~PFS_index_processlist_by_processlist_id() override=default
Definition: cursor_by_thread.h:41
Definition: table_helper.h:1281
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:39
Cursor CURSOR_BY_THREAD.
Definition: cursor_by_thread.h:54
Table PERFORMANCE_SCHEMA.PROCESSLIST.
Definition: table_processlist.h:107
int rnd_init(bool scan) override
Initialize table scan.
Definition: table_processlist.cc:128
row_processlist m_row
Current row.
Definition: table_processlist.h:134
table_processlist()
Definition: table_processlist.cc:94
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Read the current row values.
Definition: table_processlist.cc:318
static PFS_engine_table_share m_share
Table share.
Definition: table_processlist.h:110
row_priv_processlist m_row_priv
Row privileges.
Definition: table_processlist.h:136
~table_processlist() override=default
int index_init(uint idx, bool sorted) override
Definition: table_processlist.cc:142
int set_access()
Definition: table_processlist.cc:98
static Plugin_table m_table_def
Table definition.
Definition: table_processlist.h:132
static THR_LOCK m_table_lock
Table share lock.
Definition: table_processlist.h:130
static PFS_engine_table * create(PFS_engine_table_share *)
Table builder.
Definition: table_processlist.cc:90
int make_row(PFS_thread *pfs) override
Definition: table_processlist.cc:157
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:54
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:55
#define USERNAME_LENGTH
Definition: mysql_com.h:68
static PFS_engine_table_share_proxy table
Definition: pfs.cc:60
Definition: buf0block_hint.cc:29
Data types for columns used in the performance schema tables (declarations)
Object names (declarations).
static const LEX_CSTRING pfs
Definition: sql_show_processlist.cc:65
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:357
Definition: pfs_name.h:117
Instrumented thread implementation.
Definition: pfs_instr.h:374
Definition: pfs_name.h:224
Definition: thr_lock.h:138
Definition: table_processlist.h:100
char m_priv_user[USERNAME_LENGTH]
Definition: table_processlist.h:102
size_t m_priv_user_length
Definition: table_processlist.h:103
enum enum_priv_processlist m_auth
Definition: table_processlist.h:101
A row of PERFORMANCE_SCHEMA.PROCESSLIST.
Definition: table_processlist.h:51
uint m_hostname_length
Length in bytes of m_hostname.
Definition: table_processlist.h:59
PFS_schema_name m_db_name
Column DB.
Definition: table_processlist.h:61
PFS_user_name m_user_name
Column USER.
Definition: table_processlist.h:55
uint m_processlist_state_length
Length in bytes of m_processlist_state_ptr.
Definition: table_processlist.h:69
int m_command
Column COMMAND.
Definition: table_processlist.h:63
time_t m_start_time
Column TIME.
Definition: table_processlist.h:65
const char * m_processlist_info_ptr
Column INFO.
Definition: table_processlist.h:71
char m_hostname[HOST_AND_PORT_LENGTH]
Column HOST (and PORT).
Definition: table_processlist.h:57
ulonglong m_processlist_id
Column ID.
Definition: table_processlist.h:53
const char * m_processlist_state_ptr
Column STATE.
Definition: table_processlist.h:67
bool m_secondary
Column EXECUTION_ENGINE.
Definition: table_processlist.h:75
uint m_processlist_info_length
Length in bytes of m_processlist_info_ptr.
Definition: table_processlist.h:73
Include file for Sun RPC to compile out of the box.