<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Splitting flush logs command</title>
	<atom:link href="http://ebergen.net/wordpress/2008/05/19/splitting-flush-logs-command/feed/" rel="self" type="application/rss+xml" />
	<link>http://ebergen.net/wordpress/2008/05/19/splitting-flush-logs-command/</link>
	<description>You will probably want some waders, a pick axe, and one of those hats with a light on it before you go in here.</description>
	<pubDate>Tue, 06 Jan 2009 11:46:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: OurDelta - Builds for MySQL &#187; This week in OurDelta - Vol 1</title>
		<link>http://ebergen.net/wordpress/2008/05/19/splitting-flush-logs-command/#comment-188822</link>
		<dc:creator>OurDelta - Builds for MySQL &#187; This week in OurDelta - Vol 1</dc:creator>
		<pubDate>Wed, 22 Oct 2008 20:42:41 +0000</pubDate>
		<guid isPermaLink="false">http://ebergen.net/wordpress/?p=179#comment-188822</guid>
		<description>[...] Eric Bergen of Proven Scaling submitted a patch, and David Stainton from Spinn3r supplied two more that he&#8217;d extracted from the big Google patches. [...]</description>
		<content:encoded><![CDATA[<p>[...] Eric Bergen of Proven Scaling submitted a patch, and David Stainton from Spinn3r supplied two more that he&#8217;d extracted from the big Google patches. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Bergen</title>
		<link>http://ebergen.net/wordpress/2008/05/19/splitting-flush-logs-command/#comment-132800</link>
		<dc:creator>Eric Bergen</dc:creator>
		<pubDate>Tue, 20 May 2008 20:12:46 +0000</pubDate>
		<guid isPermaLink="false">http://ebergen.net/wordpress/?p=179#comment-132800</guid>
		<description>I did several checks to see if the new keywords conflict. The only problems I found are that I had to special case the log function in the parser. Using log and error for columns still works great: 

mysql&gt; create table log (log int);
Query OK, 0 rows affected (0.00 sec)

mysql&gt; insert into log set log=10;
Query OK, 1 row affected (0.00 sec)

mysql&gt; create table error (error int);
Query OK, 0 rows affected (0.00 sec)

mysql&gt; insert into error set error=1;
Query OK, 1 row affected (0.00 sec)

mysql&gt; select error from error;
+-------+
&#124; error &#124;
+-------+
&#124;     1 &#124; 
+-------+
1 row in set (0.00 sec)

mysql&gt; select log from log;
+------+
&#124; log  &#124;
+------+
&#124;   10 &#124; 
+------+
1 row in set (0.00 sec)</description>
		<content:encoded><![CDATA[<p>I did several checks to see if the new keywords conflict. The only problems I found are that I had to special case the log function in the parser. Using log and error for columns still works great: </p>
<p>mysql> create table log (log int);<br />
Query OK, 0 rows affected (0.00 sec)</p>
<p>mysql> insert into log set log=10;<br />
Query OK, 1 row affected (0.00 sec)</p>
<p>mysql> create table error (error int);<br />
Query OK, 0 rows affected (0.00 sec)</p>
<p>mysql> insert into error set error=1;<br />
Query OK, 1 row affected (0.00 sec)</p>
<p>mysql> select error from error;<br />
+&#8212;&#8212;-+<br />
| error |<br />
+&#8212;&#8212;-+<br />
|     1 |<br />
+&#8212;&#8212;-+<br />
1 row in set (0.00 sec)</p>
<p>mysql> select log from log;<br />
+&#8212;&#8212;+<br />
| log  |<br />
+&#8212;&#8212;+<br />
|   10 |<br />
+&#8212;&#8212;+<br />
1 row in set (0.00 sec)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: venu</title>
		<link>http://ebergen.net/wordpress/2008/05/19/splitting-flush-logs-command/#comment-132762</link>
		<dc:creator>venu</dc:creator>
		<pubDate>Tue, 20 May 2008 16:20:50 +0000</pubDate>
		<guid isPermaLink="false">http://ebergen.net/wordpress/?p=179#comment-132762</guid>
		<description>Also, the patch makes new keywords like LOG and ERROR; those are all common column names. But I don't any other way to implement this other than introducing at parser level.

May be something like..

FLUSH LOGS //All logs
FLUSH LOGS=0 //All logs
FLUSH LOGS=1 //General log
FLUSH LOGS=2 //Slow log
...

But that does not sound right though...</description>
		<content:encoded><![CDATA[<p>Also, the patch makes new keywords like LOG and ERROR; those are all common column names. But I don&#8217;t any other way to implement this other than introducing at parser level.</p>
<p>May be something like..</p>
<p>FLUSH LOGS //All logs<br />
FLUSH LOGS=0 //All logs<br />
FLUSH LOGS=1 //General log<br />
FLUSH LOGS=2 //Slow log<br />
&#8230;</p>
<p>But that does not sound right though&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: venu</title>
		<link>http://ebergen.net/wordpress/2008/05/19/splitting-flush-logs-command/#comment-132761</link>
		<dc:creator>venu</dc:creator>
		<pubDate>Tue, 20 May 2008 16:15:31 +0000</pubDate>
		<guid isPermaLink="false">http://ebergen.net/wordpress/?p=179#comment-132761</guid>
		<description>Eric

Thats a great patch..thanks for sharing.

Also, last year I made a patch will actually rotates the LOGS only at fixed 8K; and flush logs will simply ignore if the size is not met; and that size is configurable.</description>
		<content:encoded><![CDATA[<p>Eric</p>
<p>Thats a great patch..thanks for sharing.</p>
<p>Also, last year I made a patch will actually rotates the LOGS only at fixed 8K; and flush logs will simply ignore if the size is not met; and that size is configurable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay Pipes</title>
		<link>http://ebergen.net/wordpress/2008/05/19/splitting-flush-logs-command/#comment-132709</link>
		<dc:creator>Jay Pipes</dc:creator>
		<pubDate>Tue, 20 May 2008 11:07:01 +0000</pubDate>
		<guid isPermaLink="false">http://ebergen.net/wordpress/?p=179#comment-132709</guid>
		<description>Hi Eric,

Great work.  However, I notice in the patch that you are adding a number of new keywords: ERROR, GENERAL, LOG, SLOW, etc...

Have you checked to ensure that existing fields named as keywords do not break with your patch?  Since things like ERROR and LOG could be common field names, I can envision a test is needed for this...

Also, before submitting the patch for inclusion (if you want to do that...) you will want to go through the code and ensure it meets the coding guidelines.  Notably, assignment operators have no space between the variable name and the equals sign, and one space afterwards.  In the patch, you use a variety of different styles (var=something; var = something;, etc...)

Anyway, other than that, the patch looks great.

Cheers,

Jay</description>
		<content:encoded><![CDATA[<p>Hi Eric,</p>
<p>Great work.  However, I notice in the patch that you are adding a number of new keywords: ERROR, GENERAL, LOG, SLOW, etc&#8230;</p>
<p>Have you checked to ensure that existing fields named as keywords do not break with your patch?  Since things like ERROR and LOG could be common field names, I can envision a test is needed for this&#8230;</p>
<p>Also, before submitting the patch for inclusion (if you want to do that&#8230;) you will want to go through the code and ensure it meets the coding guidelines.  Notably, assignment operators have no space between the variable name and the equals sign, and one space afterwards.  In the patch, you use a variety of different styles (var=something; var = something;, etc&#8230;)</p>
<p>Anyway, other than that, the patch looks great.</p>
<p>Cheers,</p>
<p>Jay</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin Swanhart</title>
		<link>http://ebergen.net/wordpress/2008/05/19/splitting-flush-logs-command/#comment-132590</link>
		<dc:creator>Justin Swanhart</dc:creator>
		<pubDate>Tue, 20 May 2008 05:38:01 +0000</pubDate>
		<guid isPermaLink="false">http://ebergen.net/wordpress/?p=179#comment-132590</guid>
		<description>Very nice Eric.  If they ever start accepting patches, it will be a welcome addition :D</description>
		<content:encoded><![CDATA[<p>Very nice Eric.  If they ever start accepting patches, it will be a welcome addition <img src='http://ebergen.net/wordpress/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Dzilvelis</title>
		<link>http://ebergen.net/wordpress/2008/05/19/splitting-flush-logs-command/#comment-132582</link>
		<dc:creator>John Dzilvelis</dc:creator>
		<pubDate>Tue, 20 May 2008 04:50:08 +0000</pubDate>
		<guid isPermaLink="false">http://ebergen.net/wordpress/?p=179#comment-132582</guid>
		<description>Having the rotation mechanism for the general log would be great. I'm assuming that each log would require its own index file and "expire log days" setting. 

Will you also include the complementary "purge...to...." commands for the individual logs? 

May not really be related, but it would be great if logging could be enabled/disabled via  dynamic global variables rather than having to restart mysqld.</description>
		<content:encoded><![CDATA[<p>Having the rotation mechanism for the general log would be great. I&#8217;m assuming that each log would require its own index file and &#8220;expire log days&#8221; setting. </p>
<p>Will you also include the complementary &#8220;purge&#8230;to&#8230;.&#8221; commands for the individual logs? </p>
<p>May not really be related, but it would be great if logging could be enabled/disabled via  dynamic global variables rather than having to restart mysqld.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
