forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5cd1c40
committed
pgstat: set timestamps of fixed-numbered stats after a crash.
When not loading stats at startup (i.e. pgstat_discard_stats() gettingcalled), reset timestamps of fixed numbered stats would be left at0. Oversight in5891c7a.Instead use pgstat_reset_after_failure() and add tests verifying thatfixed-numbered reset timestamps are set appropriately.Reported-By: "David G. Johnston" <david.g.johnston@gmail.com>Discussion:https://postgr.es/m/CAKFQuwamFuaQHKdhcMt4Gbw5+Hca2UE741B8gOOXoA=TtAd2Yw@mail.gmail.com1 parent3f19e17 commit5cd1c40
File tree
2 files changed
+24
-8
lines changed- src
- backend/utils/activity
- test/recovery/t
2 files changed
+24
-8
lines changedLines changed: 14 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
166 | 166 |
| |
167 | 167 |
| |
168 | 168 |
| |
169 |
| - | |
| 169 | + | |
170 | 170 |
| |
171 | 171 |
| |
172 | 172 |
| |
| |||
427 | 427 |
| |
428 | 428 |
| |
429 | 429 |
| |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
430 | 436 |
| |
431 | 437 |
| |
432 | 438 |
| |
| |||
1422 | 1428 |
| |
1423 | 1429 |
| |
1424 | 1430 |
| |
1425 |
| - | |
1426 | 1431 |
| |
1427 | 1432 |
| |
1428 | 1433 |
| |
| |||
1445 | 1450 |
| |
1446 | 1451 |
| |
1447 | 1452 |
| |
1448 |
| - | |
| 1453 | + | |
1449 | 1454 |
| |
1450 | 1455 |
| |
1451 | 1456 |
| |
| |||
1597 | 1602 |
| |
1598 | 1603 |
| |
1599 | 1604 |
| |
1600 |
| - | |
1601 |
| - | |
| 1605 | + | |
1602 | 1606 |
| |
1603 | 1607 |
| |
1604 | 1608 |
| |
1605 | 1609 |
| |
1606 | 1610 |
| |
1607 |
| - | |
1608 |
| - | |
| 1611 | + | |
| 1612 | + | |
1609 | 1613 |
| |
1610 | 1614 |
| |
1611 |
| - | |
| 1615 | + | |
1612 | 1616 |
| |
| 1617 | + | |
| 1618 | + | |
1613 | 1619 |
| |
1614 | 1620 |
| |
1615 | 1621 |
| |
|
Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
250 | 250 |
| |
251 | 251 |
| |
252 | 252 |
| |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
253 | 263 |
| |
254 | 264 |
| |
255 | 265 |
| |
|
0 commit comments
Comments
(0)