<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: INFORMATION_SCHEMA.GLOBAL_STATUS: watch out</title>
	<atom:link href="http://code.openark.org/blog/mysql/information_schema-global_status-watch-out/feed" rel="self" type="application/rss+xml" />
	<link>http://code.openark.org/blog/mysql/information_schema-global_status-watch-out</link>
	<description>Blog by Shlomi Noach</description>
	<lastBuildDate>Wed, 01 Feb 2012 20:47:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: shlomi</title>
		<link>http://code.openark.org/blog/mysql/information_schema-global_status-watch-out/comment-page-1#comment-4954</link>
		<dc:creator>shlomi</dc:creator>
		<pubDate>Sat, 17 Oct 2009 04:33:30 +0000</pubDate>
		<guid isPermaLink="false">http://code.openark.org/blog/?p=1194#comment-4954</guid>
		<description>Sheeri,

Whoa, I was in the midst of developing a similar tool. I was unaware of mysar!
Thanks,
Shlomi</description>
		<content:encoded><![CDATA[<p>Sheeri,</p>
<p>Whoa, I was in the midst of developing a similar tool. I was unaware of mysar!<br />
Thanks,<br />
Shlomi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sheeri</title>
		<link>http://code.openark.org/blog/mysql/information_schema-global_status-watch-out/comment-page-1#comment-4947</link>
		<dc:creator>Sheeri</dc:creator>
		<pubDate>Fri, 16 Oct 2009 22:29:31 +0000</pubDate>
		<guid isPermaLink="false">http://code.openark.org/blog/?p=1194#comment-4947</guid>
		<description>Shlomi -- you can use this information to create a MySQL Event that will get lots of information.

Or use the mysar tool to do something similar.  (https://launchpad.net/mysar
and
http://www.pythian.com/news/4230/mysar-a-sar-like-utility-for-mysql )</description>
		<content:encoded><![CDATA[<p>Shlomi -- you can use this information to create a MySQL Event that will get lots of information.</p>
<p>Or use the mysar tool to do something similar.  (<a href="https://launchpad.net/mysar" rel="nofollow">https://launchpad.net/mysar</a><br />
and<br />
<a href="http://www.pythian.com/news/4230/mysar-a-sar-like-utility-for-mysql" rel="nofollow">http://www.pythian.com/news/4230/mysar-a-sar-like-utility-for-mysql</a> )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shlomi</title>
		<link>http://code.openark.org/blog/mysql/information_schema-global_status-watch-out/comment-page-1#comment-4918</link>
		<dc:creator>shlomi</dc:creator>
		<pubDate>Fri, 16 Oct 2009 04:41:11 +0000</pubDate>
		<guid isPermaLink="false">http://code.openark.org/blog/?p=1194#comment-4918</guid>
		<description>@Gavin,

Heh, on first reading your comment I thought to myself I should delete this post altogether. But I then realized the flaw is with the examples I provided, which were misleading.

Using &quot;IN&quot; is just fine, but does not differ from reading the entire table. The problem is with iterating the table.

Look at Roland&#039;s comment: he got my meaning: I wish to provide with properly named columns+values, not with VARIABLE_NAME, VARIABLE_VALUE.

So the flaw is that I did not provide the kind of result I really was expecting, hence the confusion. I apologize for not being clear.

Regards</description>
		<content:encoded><![CDATA[<p>@Gavin,</p>
<p>Heh, on first reading your comment I thought to myself I should delete this post altogether. But I then realized the flaw is with the examples I provided, which were misleading.</p>
<p>Using "IN" is just fine, but does not differ from reading the entire table. The problem is with iterating the table.</p>
<p>Look at Roland's comment: he got my meaning: I wish to provide with properly named columns+values, not with VARIABLE_NAME, VARIABLE_VALUE.</p>
<p>So the flaw is that I did not provide the kind of result I really was expecting, hence the confusion. I apologize for not being clear.</p>
<p>Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gavin Towey</title>
		<link>http://code.openark.org/blog/mysql/information_schema-global_status-watch-out/comment-page-1#comment-4913</link>
		<dc:creator>Gavin Towey</dc:creator>
		<pubDate>Fri, 16 Oct 2009 01:26:14 +0000</pubDate>
		<guid isPermaLink="false">http://code.openark.org/blog/?p=1194#comment-4913</guid>
		<description>what&#039;s wrong with IN ?

SELECT * FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME IN (&#039;innodb_os_log_written&#039;, &#039;questions&#039;);</description>
		<content:encoded><![CDATA[<p>what's wrong with IN ?</p>
<p>SELECT * FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME IN ('innodb_os_log_written', 'questions');</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shlomi</title>
		<link>http://code.openark.org/blog/mysql/information_schema-global_status-watch-out/comment-page-1#comment-4891</link>
		<dc:creator>shlomi</dc:creator>
		<pubDate>Thu, 15 Oct 2009 04:32:21 +0000</pubDate>
		<guid isPermaLink="false">http://code.openark.org/blog/?p=1194#comment-4891</guid>
		<description>Ronald,

Great!
Thanks</description>
		<content:encoded><![CDATA[<p>Ronald,</p>
<p>Great!<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roland Bouman</title>
		<link>http://code.openark.org/blog/mysql/information_schema-global_status-watch-out/comment-page-1#comment-4886</link>
		<dc:creator>Roland Bouman</dc:creator>
		<pubDate>Wed, 14 Oct 2009 23:28:10 +0000</pubDate>
		<guid isPermaLink="false">http://code.openark.org/blog/?p=1194#comment-4886</guid>
		<description>Hi Shlomi, 

there is an easy way around it without the memory table. Just use something like

select MAX(IF(variable_name = &#039;INNODB_OS_LOG_WRITTEN&#039;, VARIABLE_VALUE, NULL)) AS INNODB_OS_LOG_WRITTEN
,      MAX(IF(variable_name = &#039;QUESTIONS&#039;, VARIABLE_VALUE, NULL))             AS QUESTIONS
from   information_schema.GLOBAL_STATUS</description>
		<content:encoded><![CDATA[<p>Hi Shlomi, </p>
<p>there is an easy way around it without the memory table. Just use something like</p>
<p>select MAX(IF(variable_name = 'INNODB_OS_LOG_WRITTEN', VARIABLE_VALUE, NULL)) AS INNODB_OS_LOG_WRITTEN<br />
,      MAX(IF(variable_name = 'QUESTIONS', VARIABLE_VALUE, NULL))             AS QUESTIONS<br />
from   information_schema.GLOBAL_STATUS</p>
]]></content:encoded>
	</item>
</channel>
</rss>

