forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit598f303
committed
Fix bogus time printout in walreceiver's debug log messages.
The displayed sendtime and receipttime were always exactly equal, becausesomebody forgot that timestamptz_to_str returns a static buffer (therebysimplifying life for most callers, at the cost of complicating it for thosewho need two results concurrently). Apply the same pstrdup solution usedby the other call sites with this issue. Back-patch to 9.2 where thefaulty code was introduced. Per bug #9849 from Haruka Takatsuka, thoughthis is not exactly his patch.Possibly we should change timestamptz_to_str's API, but I wouldn't wantto do so in the back branches.1 parenta2f9572 commit598f303
1 file changed
+12
-2
lines changedLines changed: 12 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1196 | 1196 |
| |
1197 | 1197 |
| |
1198 | 1198 |
| |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
1199 | 1206 |
| |
1200 |
| - | |
1201 |
| - | |
| 1207 | + | |
| 1208 | + | |
1202 | 1209 |
| |
1203 | 1210 |
| |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
1204 | 1214 |
|
0 commit comments
Comments
(0)