From: Tom Lane <tgl@sss.pgh.pa.us>
To: harukat@sraoss.co.jp
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #9849: walreceiver's DEBUG message reports wrong timestamp
Date: Fri, 04 Apr 2014 10:49:57 -0400
Message-ID: <6802.1396622997@sss.pgh.pa.us> (raw)
In-Reply-To: <20140404102216.322.99900@wrigleys.postgresql.org>
References: <20140404102216.322.99900@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, harukat@sraoss.co.jp
Subject: Re: BUG #9849: walreceiver's DEBUG message reports wrong timestamp
In-Reply-To: <6802.1396622997@sss.pgh.pa.us>
References: <20140404102216.322.99900@wrigleys.postgresql.org> <6802.1396622997@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox