MySQL 8.0.30
Source Code Documentation
init.h
Go to the documentation of this file.
1/* Copyright (c) 2014, 2022, 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 also distributed 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 included with MySQL.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License, version 2.0, for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22
23#ifndef DD__PERFORMANCE_SCHEMA_INIT_PFS_INCLUDED
24#define DD__PERFORMANCE_SCHEMA_INIT_PFS_INCLUDED
25
26class THD;
27
28namespace dd {
29class Properties;
30enum class enum_dd_init_type;
31} // namespace dd
32
33namespace dd {
34namespace performance_schema {
35
36/**
37 Create the performance schema.
38
39 @param thd Thread context.
40
41 @return Return true upon failure, otherwise false.
42*/
43
44bool create_pfs_schema(THD *thd);
45
46/**
47 Creates performance schema tables in the Data Dictionary.
48
49 @return Return true upon failure, otherwise false.
50*/
51
53
54/**
55 Store the property "PS_version" in table's options
56*/
57
58void set_PS_version_for_table(dd::Properties *table_options);
59
60} // namespace performance_schema
61} // namespace dd
62
63#endif
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_class.h:922
The Properties class defines an interface for storing key=value pairs, where both key and value may b...
Definition: properties.h:73
bool create_pfs_schema(THD *thd)
Create the performance schema.
Definition: init.cc:308
void set_PS_version_for_table(dd::Properties *table_options)
Store the property "PS_version" in table's options.
Definition: init.cc:334
bool init_pfs_tables(enum_dd_init_type init_type)
Creates performance schema tables in the Data Dictionary.
Definition: init.cc:321
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:42
enum_dd_init_type
Definition: dd.h:31