<?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: Does anybody really know what time it is?</title>
	<atom:link href="http://www.pythian.com/news/1295/does-anybody-really-know-what-time-it-is/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pythian.com/news/1295/does-anybody-really-know-what-time-it-is/</link>
	<description>News and views from Pythian DBAs</description>
	<lastBuildDate>Fri, 10 Feb 2012 13:01:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: haimin life trace &#187; Blog Archive &#187; mysql æ—¶é—´çŸ¥å¤šå°‘</title>
		<link>http://www.pythian.com/news/1295/does-anybody-really-know-what-time-it-is/#comment-292418</link>
		<dc:creator>haimin life trace &#187; Blog Archive &#187; mysql æ—¶é—´çŸ¥å¤šå°‘</dc:creator>
		<pubDate>Tue, 21 Oct 2008 07:53:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1295/does-anybody-really-know-what-time-it-is#comment-292418</guid>
		<description>[...] è¯¥æ–‡åªæ˜¯åšä¸€ä¸ªè®°å½• è¯¦ç»†ä¿¡æ¯è¯·refer Does anybody really know what time it is?  [...]</description>
		<content:encoded><![CDATA[<p>[...] è¯¥æ–‡åªæ˜¯åšä¸€ä¸ªè®°å½• è¯¦ç»†ä¿¡æ¯è¯·refer Does anybody really know what time it is?  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lamarche</title>
		<link>http://www.pythian.com/news/1295/does-anybody-really-know-what-time-it-is/#comment-292189</link>
		<dc:creator>lamarche</dc:creator>
		<pubDate>Mon, 20 Oct 2008 20:38:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1295/does-anybody-really-know-what-time-it-is#comment-292189</guid>
		<description>Just to make sure that utc_timestamp() is replication safe, I did the following test:

### On master

mysql&gt; create table test as select now(), sysdate(), utc_timestamp();
Query OK, 1 row affected (0.04 sec)
Records: 1  Duplicates: 0  Warnings: 0

### I then restarted the slave and saw that utc_timestamp is replication safe:

mysql&gt; select * from test;
+---------------------+---------------------+---------------------+
&#124; now()               &#124; sysdate()           &#124; utc_timestamp()     &#124;
+---------------------+---------------------+---------------------+
&#124; 2008-10-20 16:12:28 &#124; 2008-10-20 16:12:28 &#124; 2008-10-20 20:12:28 &#124; 
+---------------------+---------------------+---------------------+
1 row in set (0.00 sec)</description>
		<content:encoded><![CDATA[<p>Just to make sure that utc_timestamp() is replication safe, I did the following test:</p>
<p>### On master</p>
<p>mysql&gt; create table test as select now(), sysdate(), utc_timestamp();<br />
Query OK, 1 row affected (0.04 sec)<br />
Records: 1  Duplicates: 0  Warnings: 0</p>
<p>### I then restarted the slave and saw that utc_timestamp is replication safe:</p>
<p>mysql&gt; select * from test;<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+<br />
| now()               | sysdate()           | utc_timestamp()     |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+<br />
| 2008-10-20 16:12:28 | 2008-10-20 16:12:28 | 2008-10-20 20:12:28 |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+<br />
1 row in set (0.00 sec)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mats Kindahl</title>
		<link>http://www.pythian.com/news/1295/does-anybody-really-know-what-time-it-is/#comment-288462</link>
		<dc:creator>Mats Kindahl</dc:creator>
		<pubDate>Thu, 09 Oct 2008 20:06:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1295/does-anybody-really-know-what-time-it-is#comment-288462</guid>
		<description>Note that it is also possible to write replication-safe code by assigning non-deterministic values to user-defined variables. In other words, the following code replication-safe:

SET @foo = SYSDATE();
INSERT INTO t1 VALUES (@foo);
</description>
		<content:encoded><![CDATA[<p>Note that it is also possible to write replication-safe code by assigning non-deterministic values to user-defined variables. In other words, the following code replication-safe:</p>
<p>SET @foo = SYSDATE();<br />
INSERT INTO t1 VALUES (@foo);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://www.pythian.com/news/1295/does-anybody-really-know-what-time-it-is/#comment-288454</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Thu, 09 Oct 2008 19:45:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1295/does-anybody-really-know-what-time-it-is#comment-288454</guid>
		<description>I suppose you could exploit that fact to keep a record of how far your slaves tend to lag behind, if you were interested in such statistics.</description>
		<content:encoded><![CDATA[<p>I suppose you could exploit that fact to keep a record of how far your slaves tend to lag behind, if you were interested in such statistics.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sheeri Cabral</title>
		<link>http://www.pythian.com/news/1295/does-anybody-really-know-what-time-it-is/#comment-288448</link>
		<dc:creator>Sheeri Cabral</dc:creator>
		<pubDate>Thu, 09 Oct 2008 19:01:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1295/does-anybody-really-know-what-time-it-is#comment-288448</guid>
		<description>whoops!  Fixing the post now.  Thanx!</description>
		<content:encoded><![CDATA[<p>whoops!  Fixing the post now.  Thanx!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roland Bouman</title>
		<link>http://www.pythian.com/news/1295/does-anybody-really-know-what-time-it-is/#comment-288442</link>
		<dc:creator>Roland Bouman</dc:creator>
		<pubDate>Thu, 09 Oct 2008 18:23:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1295/does-anybody-really-know-what-time-it-is#comment-288442</guid>
		<description>Hi!

&quot;...Note that replication does not work well with deterministic functions...&quot;

slip of the keyboard...should be *non-deterministic* functions.

In MySQL 5.1, it should be ok for replication when using mixed or row-based binary logging. In this case, the resultant value of the non-deterministic function call is logged instead of the fact that the call was made. So, the slave does not get to execute the call but gets passed the value resulting from the master&#039;s call.

regards,

Roland</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>&#8220;&#8230;Note that replication does not work well with deterministic functions&#8230;&#8221;</p>
<p>slip of the keyboard&#8230;should be *non-deterministic* functions.</p>
<p>In MySQL 5.1, it should be ok for replication when using mixed or row-based binary logging. In this case, the resultant value of the non-deterministic function call is logged instead of the fact that the call was made. So, the slave does not get to execute the call but gets passed the value resulting from the master&#8217;s call.</p>
<p>regards,</p>
<p>Roland</p>
]]></content:encoded>
	</item>
</channel>
</rss>

