Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WW5RS-0002gY-Ik for pgsql-bugs@arkaria.postgresql.org; Fri, 04 Apr 2014 14:50:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WW5RS-0007yN-14 for pgsql-bugs@arkaria.postgresql.org; Fri, 04 Apr 2014 14:50:02 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WW5RR-0007x8-0K for pgsql-bugs@postgresql.org; Fri, 04 Apr 2014 14:50:01 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WW5RO-0005LO-HI for pgsql-bugs@postgresql.org; Fri, 04 Apr 2014 14:50:00 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s34EnvAv006803; Fri, 4 Apr 2014 10:49:57 -0400 From: Tom Lane To: harukat@sraoss.co.jp cc: pgsql-bugs@postgresql.org Subject: Re: BUG #9849: walreceiver's DEBUG message reports wrong timestamp In-reply-to: <20140404102216.322.99900@wrigleys.postgresql.org> References: <20140404102216.322.99900@wrigleys.postgresql.org> Comments: In-reply-to harukat@sraoss.co.jp message dated "Fri, 04 Apr 2014 10:22:16 -0000" Date: Fri, 04 Apr 2014 10:49:57 -0400 Message-ID: <6802.1396622997@sss.pgh.pa.us> X-Pg-Spam-Score: -2.5 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org harukat@sraoss.co.jp writes: > We get the folloging message at the standby server. > DEBUG: sendtime 2014-04-04 11:26:02.425368+09 receipttime 2014-04-04 > 11:26:02.425368+09 replication apply delay 0 ms transfer latency 224043 ms > Though sendtime equals receipttime, transfer latency is large. > This receipttime may be wrong. Yeah, somebody forgot that timestamptz_to_str returns a static buffer. strdupa is not a portable solution though. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs