<?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: Can you Trust CHECK TABLE ?</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2008/09/11/can-you-trust-check-table/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2008/09/11/can-you-trust-check-table/</link>
	<description>Everything about MySQL Performance</description>
	<lastBuildDate>Sat, 07 Nov 2009 18:35:44 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2008/09/11/can-you-trust-check-table/comment-page-1/#comment-354642</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Fri, 12 Sep 2008 17:29:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=497#comment-354642</guid>
		<description>Pat,

Actually there IS a second copy of meta data in MYI files.... which can be checked against what is in .frm files but it is not.    This is artificial example of course but believe me I&#039;ve seen mismatching .frm files from MYI/MYD files many times.   In particular for MyISAM - because this is table type which is advertised as being possible to move around... so people do it.  Not always correctly.

The example with replication is wrong.  If you delete the binary log file from the system replication will complain just as you would expect.   If you trash binary log it may not... though it is common complain too what checksums are missing in binary logs.</description>
		<content:encoded><![CDATA[<p>Pat,</p>
<p>Actually there IS a second copy of meta data in MYI files&#8230;. which can be checked against what is in .frm files but it is not.    This is artificial example of course but believe me I&#8217;ve seen mismatching .frm files from MYI/MYD files many times.   In particular for MyISAM &#8211; because this is table type which is advertised as being possible to move around&#8230; so people do it.  Not always correctly.</p>
<p>The example with replication is wrong.  If you delete the binary log file from the system replication will complain just as you would expect.   If you trash binary log it may not&#8230; though it is common complain too what checksums are missing in binary logs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Aylett</title>
		<link>http://www.mysqlperformanceblog.com/2008/09/11/can-you-trust-check-table/comment-page-1/#comment-354638</link>
		<dc:creator>James Aylett</dc:creator>
		<pubDate>Fri, 12 Sep 2008 17:09:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=497#comment-354638</guid>
		<description>You can detect this situation to some extent by having some kind of hash of the frm in the myd/myi files. On the other hand, you can always break systems by messing directly with their internal files, so I wouldn&#039;t argue that this is as important as perhaps providing tools for managing rollback/restore of these files as a group. Or just telling you not to do that sort of thing :-)</description>
		<content:encoded><![CDATA[<p>You can detect this situation to some extent by having some kind of hash of the frm in the myd/myi files. On the other hand, you can always break systems by messing directly with their internal files, so I wouldn&#8217;t argue that this is as important as perhaps providing tools for managing rollback/restore of these files as a group. Or just telling you not to do that sort of thing <img src='http://www.mysqlperformanceblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pat</title>
		<link>http://www.mysqlperformanceblog.com/2008/09/11/can-you-trust-check-table/comment-page-1/#comment-354608</link>
		<dc:creator>Pat</dc:creator>
		<pubDate>Fri, 12 Sep 2008 16:18:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=497#comment-354608</guid>
		<description>How&#039;s check table even going to if there&#039;s an error here w/o carrying a second copy of the metadata in the MYD file? Seems like he can only reasonably be expected to compare the data in the MYD with the data in the FRM and if they look consistent all is well.

If you spoof the metadata like this, I think that qualifies as an event the product can&#039;t reasonably be expected to recover from. Like going out and deleting the binary log from the file system and then opening a bug that replication is broken.</description>
		<content:encoded><![CDATA[<p>How&#8217;s check table even going to if there&#8217;s an error here w/o carrying a second copy of the metadata in the MYD file? Seems like he can only reasonably be expected to compare the data in the MYD with the data in the FRM and if they look consistent all is well.</p>
<p>If you spoof the metadata like this, I think that qualifies as an event the product can&#8217;t reasonably be expected to recover from. Like going out and deleting the binary log from the file system and then opening a bug that replication is broken.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2008/09/11/can-you-trust-check-table/comment-page-1/#comment-354535</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Fri, 12 Sep 2008 06:59:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=497#comment-354535</guid>
		<description>Harmut,

I remember I ran into this 4-5 years ago when I was still with MySQL and it was described as product feature. 
Though now it is the time to fix it I think - especially as   there will be more and more meta data which will need to be tested.   For example Global foreign keys with MyISAM - how do you check they are in order if there is no such command.  What if you add CHECK constrains ?</description>
		<content:encoded><![CDATA[<p>Harmut,</p>
<p>I remember I ran into this 4-5 years ago when I was still with MySQL and it was described as product feature.<br />
Though now it is the time to fix it I think &#8211; especially as   there will be more and more meta data which will need to be tested.   For example Global foreign keys with MyISAM &#8211; how do you check they are in order if there is no such command.  What if you add CHECK constrains ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hartmut</title>
		<link>http://www.mysqlperformanceblog.com/2008/09/11/can-you-trust-check-table/comment-page-1/#comment-354533</link>
		<dc:creator>hartmut</dc:creator>
		<pubDate>Fri, 12 Sep 2008 06:20:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=497#comment-354533</guid>
		<description>Hi Peter,

is there a bug report for this already or should we create one?</description>
		<content:encoded><![CDATA[<p>Hi Peter,</p>
<p>is there a bug report for this already or should we create one?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
