aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistxlog.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-04-04 11:43:38 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2014-04-04 11:44:13 -0400
commit598f3033f3b887b67acd7310175278732b4c27f9 (patch)
tree93e47157355475ab9c942c020de0aa8802c5e662 /src/backend/access/gist/gistxlog.c
parenta2f9572ca507bfcb71bcf1b81b563e5094fd6904 (diff)
downloadpostgresql-598f3033f3b887b67acd7310175278732b4c27f9.tar.gz
postgresql-598f3033f3b887b67acd7310175278732b4c27f9.zip
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.
Diffstat (limited to 'src/backend/access/gist/gistxlog.c')
0 files changed, 0 insertions, 0 deletions