Patch: suppress_log_warning_1592

In some circumstances MySQL will warn you that a statement is unsafe to replicate whereas it is perfectly safe:

090213 16:58:54 [Warning] Statement is not safe to log in statement format.

This has no effect on replication (see the discussion on MySQL's bugzilla) but it can fill up your error log with unnecessary messages.

This patch allows you to completely disable logging of this warning.

NOTE Only MySQL 5.1 is subject to this bug. A partial solution has been published from MySQL 5.1.37, but this bug still appears in some situations.

:!: All warnings #1592 will be disabled so you will not be able to know if your statements are really safe to replicate anymore. Use it at your own risk and only if you understand what you are doing.

Version-Specific Information

Percona-Server Version Comments
5.1.47-11.0 Full functionality available.

Variables Provided

suppress_log_warning_1592

TypeSystem and command-line variable
ScopeGlobal
DynamicYes
DefaultOFF

Disables warning #1592 (unsafe statement for binary logging).

Related Reading

Please note that this is NOT a place to ask questions or report bugs. This comment system is only intended for users to share tips and documentation additions concerning particular document.
Please report bugs to https://bugs.launchpad.net/percona-project/+filebug and ask general questions in maillist Percona-discussions

Discussion

Enter your comment (wiki syntax is allowed):
RJJXH
 
patches/suppress_log_warning_1592.txt · Last modified: 2010/06/24 07:25 by stephane.combaudon
 
Except where otherwise noted, content on this wiki is licensed under the following license:GNU Free Documentation License 1.2
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki