Fix bogus time printout in walreceiver's debug log messages.
Fix bogus time printout in walreceiver's debug log messages.

The displayed sendtime and receipttime were always exactly equal, because
somebody forgot that timestamptz_to_str returns a static buffer (thereby
simplifying life for most callers, at the cost of complicating it for those
who need two results concurrently).  Apply the same pstrdup solution used
by the other call sites with this issue.  Back-patch to 9.2 where the
faulty code was introduced.  Per bug #9849 from Haruka Takatsuka, though
this is not exactly his patch.

Possibly we should change timestamptz_to_str's API, but I wouldn't want
to do so in the back branches.

xinzweb/gpdb,greenplum-db/gpdb,jmcatamney/gpdb,xinzweb/gpdb,oberstet/postgres-xl,greenplum-db/gpdb,greenplum-db/gpdb,50wu/gpdb,greenplum-db/gpdb,jmcatamney/gpdb,yazun/postgres-xl,pavanvd/postgres-xl,jmcatamney/gpdb,techdragon/Postgres-XL,yazun/postgres-xl,ashwinstar/gpdb,ovr/postgres-xl,lisakowen/gpdb,adam8157/gpdb,greenplum-db/gpdb,Postgres-XL/Postgres-XL,pavanvd/postgres-xl,Postgres-XL/Postgres-XL,oberstet/postgres-xl,xinzweb/gpdb,lisakowen/gpdb,ashwinstar/gpdb,oberstet/postgres-xl,lisakowen/gpdb,techdragon/Postgres-XL,pavanvd/postgres-xl,50wu/gpdb,50wu/gpdb,50wu/gpdb,ovr/postgres-xl,zeroae/postgres-xl,greenplum-db/gpdb,adam8157/gpdb,xinzweb/gpdb,zeroae/postgres-xl,Postgres-XL/Postgres-XL,50wu/gpdb,xinzweb/gpdb,yazun/postgres-xl,techdragon/Postgres-XL,jmcatamney/gpdb,oberstet/postgres-xl,Postgres-XL/Postgres-XL,ashwinstar/gpdb,zeroae/postgres-xl,Postgres-XL/Postgres-XL,ovr/postgres-xl,yazun/postgres-xl,pavanvd/postgres-xl,adam8157/gpdb,techdragon/Postgres-XL,lisakowen/gpdb,jmcatamney/gpdb,lisakowen/gpdb,jmcatamney/gpdb,greenplum-db/gpdb,xinzweb/gpdb,50wu/gpdb,adam8157/gpdb,zeroae/postgres-xl,ashwinstar/gpdb,greenplum-db/gpdb,zeroae/postgres-xl,oberstet/postgres-xl,pavanvd/postgres-xl,jmcatamney/gpdb,ashwinstar/gpdb,adam8157/gpdb,adam8157/gpdb,xinzweb/gpdb,xinzweb/gpdb,adam8157/gpdb,ashwinstar/gpdb,lisakowen/gpdb,lisakowen/gpdb,lisakowen/gpdb,ovr/postgres-xl,ashwinstar/gpdb,50wu/gpdb,50wu/gpdb,yazun/postgres-xl,adam8157/gpdb,ovr/postgres-xl,ashwinstar/gpdb,jmcatamney/gpdb,techdragon/Postgres-XL