Rechercher dans le manuel MySQL
26.12.2.4 The setup_objects Table
The setup_objects
table controls
whether the Performance Schema monitors particular objects.
This table has a maximum size of 100 rows by default. To
change the table size, modify the
performance_schema_setup_objects_size
system variable at server startup.
The initial setup_objects
contents look like this:
- +-------------+--------------------+-------------+---------+-------+
- | OBJECT_TYPE | OBJECT_SCHEMA | OBJECT_NAME | ENABLED | TIMED |
- +-------------+--------------------+-------------+---------+-------+
- | EVENT | % | % | YES | YES |
- +-------------+--------------------+-------------+---------+-------+
Modifications to the
setup_objects
table affect object
monitoring immediately.
For object types listed in
setup_objects
, the Performance
Schema uses the table to how to monitor them. Object matching
is based on the OBJECT_SCHEMA
and
OBJECT_NAME
columns. Objects for which
there is no match are not monitored.
The effect of the default object configuration is to
instrument all tables except those in the
mysql
,
INFORMATION_SCHEMA
, and
performance_schema
databases. (Tables in
the INFORMATION_SCHEMA
database are not
instrumented regardless of the contents of
setup_objects
; the row for
information_schema.%
simply makes this
default explicit.)
When the Performance Schema checks for a match in
setup_objects
, it tries to find
more specific matches first. For example, with a table
db1.t1
, it looks for a match for
'db1'
and 't1'
, then for
'db1'
and '%'
, then for
'%'
and '%'
. The order
in which matching occurs matters because different matching
setup_objects
rows can have
different ENABLED
and
TIMED
values.
Rows can be inserted into or deleted from
setup_objects
by users with the
INSERT
or
DELETE
privilege on the table.
For existing rows, only the ENABLED
and
TIMED
columns can be modified, by users
with the UPDATE
privilege on
the table.
For more information about the role of the
setup_objects
table in event
filtering, see
Section 26.4.3, “Event Pre-Filtering”.
The setup_objects
table has these
columns:
OBJECT_TYPE
The type of object to instrument. The value is one of
'EVENT'
(Event Scheduler event),'FUNCTION'
(stored function),'PROCEDURE'
(stored procedure),'TABLE'
(base table), or'TRIGGER'
(trigger).TABLE
filtering affects table I/O events (wait/io/table/sql/handler
instrument) and table lock events (wait/lock/table/sql/handler
instrument).OBJECT_SCHEMA
The schema that contains the object. This should be a literal name, or
'%'
to mean “any schema.”OBJECT_NAME
The name of the instrumented object. This should be a literal name, or
'%'
to mean “any object.”ENABLED
Whether events for the object are instrumented. The value is
YES
orNO
. This column can be modified.TIMED
Whether events for the object are timed. This column can be modified.
The setup_objects
table has these
indexes:
Index on (
OBJECT_TYPE
,OBJECT_SCHEMA
,OBJECT_NAME
)
TRUNCATE TABLE
is permitted for
the setup_objects
table. It
removes the rows.
Traduction non disponible
Le manuel MySQL n'est pas encore traduit en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.
Document créé le 26/06/2006, dernière modification le 26/10/2018
Source du document imprimé : https://www.gaudry.be/mysql-rf-setup-objects-table.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.
Références
Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.