summaryrefslogtreecommitdiff
path: root/src/include/miscadmin.h
diff options
context:
space:
mode:
authorTom Lane2014-04-04 15:43:34 +0000
committerTom Lane2014-04-04 15:44:04 +0000
commit8120c7452a51a773ad7a249b55557439f39d41ef (patch)
tree665f91cbc1af645774e0ca1bfefcbdad4ad882a4 /src/include/miscadmin.h
parent59202fae0434c98beb4994c5fe4df354a6af31e6 (diff)
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/include/miscadmin.h')
0 files changed, 0 insertions, 0 deletions