MySQL 9.1.0
Source Code Documentation
init.h
Go to the documentation of this file.
1/* Copyright (c) 2014, 2024, Oracle and/or its affiliates.
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License, version 2.0,
5 as published by the Free Software Foundation.
6
7 This program is designed to work with certain software (including
8 but not limited to OpenSSL) that is licensed under separate terms,
9 as designated in a particular file or component or in included license
10 documentation. The authors of MySQL hereby grant you an additional
11 permission to link the program and your derivative works with the
12 separately licensed software that they have either included with
13 the program or referenced in the documentation.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License, version 2.0, for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef DD__PERFORMANCE_SCHEMA_INIT_PFS_INCLUDED
25#define DD__PERFORMANCE_SCHEMA_INIT_PFS_INCLUDED
26
27class THD;
28
29namespace dd {
30class Properties;
31enum class enum_dd_init_type;
32} // namespace dd
33
34namespace dd {
35namespace performance_schema {
36
37/**
38 Create the performance schema.
39
40 @param thd Thread context.
41
42 @return Return true upon failure, otherwise false.
43*/
44
45bool create_pfs_schema(THD *thd);
46
47/**
48 Creates performance schema tables in the Data Dictionary.
49
50 @return Return true upon failure, otherwise false.
51*/
52
54
55/**
56 Store the property "PS_version" in table's options
57*/
58
59void set_PS_version_for_table(dd::Properties *table_options);
60
61} // namespace performance_schema
62} // namespace dd
63
64#endif
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
The Properties class defines an interface for storing key=value pairs, where both key and value may b...
Definition: properties.h:74
bool create_pfs_schema(THD *thd)
Create the performance schema.
Definition: init.cc:317
void set_PS_version_for_table(dd::Properties *table_options)
Store the property "PS_version" in table's options.
Definition: init.cc:343
bool init_pfs_tables(enum_dd_init_type init_type)
Creates performance schema tables in the Data Dictionary.
Definition: init.cc:330
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:43
enum_dd_init_type
Definition: dd.h:32