forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd7744d5
committed
Fix initialization of pg_stat_get_lastscan()
A NULL result should be reported when a stats timestamp is set to 0, butc037471 missed that, leading to a confusing timestamp value after forexample a DML on a freshly-created relation with no scans done on ityet.This impacted the following attributes for two system views:- pg_stat_all_tables.last_idx_scan- pg_stat_all_tables.last_seq_scan- pg_stat_all_indexes.last_idx_scanReported-by: Robert TreatAnalyzed-by: Peter EisentrautAuthor: Dave PageDiscussion:https://postgr.es/m/CABV9wwPzMfSaz3EfKXXDxKmMprbxwF5r6WPuxqA=5mzRUqfTGg@mail.gmail.com1 parent1613de8 commitd7744d5
File tree
3 files changed
+14
-1
lines changed- src
- backend/utils/adt
- test/regress
- expected
- sql
3 files changed
+14
-1
lines changedLines changed: 7 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
| 59 | + | |
59 | 60 |
| |
60 | 61 |
| |
61 | 62 |
| |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
62 | 68 |
| |
63 | 69 |
| |
64 |
| - | |
| 70 | + | |
65 | 71 |
| |
66 | 72 |
| |
67 | 73 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
573 | 573 |
| |
574 | 574 |
| |
575 | 575 |
| |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
576 | 582 |
| |
577 | 583 |
| |
578 | 584 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
303 | 303 |
| |
304 | 304 |
| |
305 | 305 |
| |
| 306 | + | |
306 | 307 |
| |
307 | 308 |
| |
308 | 309 |
| |
|
0 commit comments
Comments
(0)