forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5c1b662
committed
Rework design of functions in pg_walinspect
This commit reworks a bit the set-returning functions of pg_walinspect,making them more flexible regarding their end LSN:- pg_get_wal_records_info()- pg_get_wal_stats()- pg_get_wal_block_info()The end LSNs given to these functions is now handled so as a valuehigher than the current LSN of the cluster (insert LSN for a primary, orreplay LSN for a standby) does not raise an error, giving moreflexibility to monitoring queries. Instead, the functions returnresults up to the current LSN, as found at the beginning of eachfunction call.As an effect of that, pg_get_wal_records_info_till_end_of_wal() andpg_get_wal_stats_till_end_of_wal() are now removed from 1.1, as theexisting, equivalent functions are able to offer the samepossibilities.Author: Bharath RupireddyDiscussion:https://postgr.es/m/CALj2ACU0_q-o4DSweyaW9NO1KBx-QkN6G_OzYQvpjf3CZVASkg@mail.gmail.com1 parentd5d5741 commit5c1b662
File tree
7 files changed
+184
-207
lines changed- contrib/pg_walinspect
- expected
- sql
- doc/src/sgml
7 files changed
+184
-207
lines changedLines changed: 40 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
| 3 | + | |
| 4 | + | |
3 | 5 |
| |
4 | 6 |
| |
5 | 7 |
| |
| |||
12 | 14 |
| |
13 | 15 |
| |
14 | 16 |
| |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
15 | 44 |
| |
16 | 45 |
| |
17 | 46 |
| |
18 | 47 |
| |
19 |
| - | |
20 |
| - | |
21 |
| - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
22 | 51 |
| |
23 | 52 |
| |
24 | 53 |
| |
25 |
| - | |
26 | 54 |
| |
27 |
| - | |
28 |
| - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
29 | 62 |
| |
| 63 | + | |
30 | 64 |
|
Lines changed: 19 additions & 23 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
39 |
| - | |
40 |
| - | |
41 |
| - | |
42 |
| - | |
43 |
| - | |
44 |
| - | |
| 39 | + | |
| 40 | + | |
45 | 41 |
| |
46 |
| - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
47 | 47 |
| |
48 |
| - | |
49 |
| - | |
50 |
| - | |
51 |
| - | |
52 |
| - | |
53 |
| - | |
54 |
| - | |
55 |
| - | |
56 |
| - | |
57 |
| - | |
58 |
| - | |
59 |
| - | |
60 |
| - | |
61 |
| - | |
62 | 48 |
| |
63 | 49 |
| |
64 | 50 |
| |
65 | 51 |
| |
66 | 52 |
| |
67 |
| - | |
| 53 | + | |
68 | 54 |
| |
69 | 55 |
| |
70 | 56 |
| |
71 | 57 |
| |
72 | 58 |
| |
73 |
| - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
74 | 70 |
| |
75 | 71 |
| |
76 | 72 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
6 | 10 |
| |
7 | 11 |
| |
8 | 12 |
| |
|
0 commit comments
Comments
(0)