aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistsplit.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-04-04 11:43:41 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2014-04-04 11:43:41 -0400
commited1cb4241585efe86d45edfed9eaf1995aa5421f (patch)
tree9b4977f12f6dbbb1afa9e6f2f4f0563be522787b /src/backend/access/gist/gistsplit.c
parent7d1e0e8d7a96ac2be5c3ce0e68a5c4eb65fccff2 (diff)
downloadpostgresql-ed1cb4241585efe86d45edfed9eaf1995aa5421f.tar.gz
postgresql-ed1cb4241585efe86d45edfed9eaf1995aa5421f.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/gistsplit.c')
0 files changed, 0 insertions, 0 deletions