forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4909cb5
committed
Fix integer overflow in debug message of walreceiver
The message tries to tell the replication apply delay which fails ifthe first WAL record is not applied yet. Fix is, instead of tellingoverflowed minus numeric, showing "N/A" which indicates that the delaydata is not yet available. Problem reported by me and patch byFabrízio de Royes Mello.Back patched to 9.4, 9.3 and 9.2 stable branches (9.1 and 9.0 do nothave the debug message).1 parent590fc5d commit4909cb5
2 files changed
+26
-7
lines changedLines changed: 16 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
793 | 793 |
| |
794 | 794 |
| |
795 | 795 |
| |
| 796 | + | |
796 | 797 |
| |
797 | 798 |
| |
798 | 799 |
| |
799 | 800 |
| |
800 |
| - | |
801 |
| - | |
802 |
| - | |
803 |
| - | |
804 |
| - | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
805 | 816 |
| |
806 | 817 |
| |
807 | 818 |
| |
|
Lines changed: 10 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
241 | 241 |
| |
242 | 242 |
| |
243 | 243 |
| |
244 |
| - | |
| 244 | + | |
| 245 | + | |
245 | 246 |
| |
246 | 247 |
| |
247 | 248 |
| |
| |||
255 | 256 |
| |
256 | 257 |
| |
257 | 258 |
| |
| 259 | + | |
| 260 | + | |
258 | 261 |
| |
259 | 262 |
| |
260 | 263 |
| |
| |||
264 | 267 |
| |
265 | 268 |
| |
266 | 269 |
| |
267 |
| - | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
268 | 276 |
| |
269 | 277 |
| |
270 | 278 |
| |
|
0 commit comments
Comments
(0)