Saves the current Performance Schema configuration. This
enables you to alter the configuration temporarily for
debugging or other purposes, then restore it to the previous
state by invoking the
To prevent other simultaneous calls to save the configuration,
ps_setup_save() acquires an
advisory lock named
a timeout parameter to indicate how many seconds to wait if
the lock already exists (which indicates that some other
session has a saved configuration outstanding). If the timeout
expires without obtaining the lock,
It is intended you call
within the same session as
ps_setup_save() because the
configuration is saved in
ps_setup_save() drops the
temporary tables and releases the lock. If you end your
session without invoking
ps_setup_save(), the tables and
lock disappear automatically.
This procedure disables binary logging during its execution by
manipulating the session value of the
sql_log_bin system variable.
That is a restricted operation, so the procedure requires
privileges sufficient to set restricted session variables. See
Section 188.8.131.52, “System Variable Privileges”.
in_timeout INT: How many seconds to wait to obtain the
sys.ps_setup_savelock. A negative timeout value means infinite timeout.