- Notifications
You must be signed in to change notification settings - Fork5.1k
Commitae45312
committed
Change pg_lsn_in_internal() to use soft error reporting
pg_lsn includes pg_lsn_in_internal() for the purpose of parsing a LSNposition for the GUC recovery_target_lsn (21f428e). It relies on aboolean called "have_error" that would be set when the LSN parsingfails, then let its callers handle any errors.d9f7f5d has added support for soft error reporting. This commitremoves some boilerplate code and switches the routine to use soft errorreporting directly, giving to the callers of pg_lsn_in_internal()the possibility to be fed the error message generated on failure.pg_lsn_in_internal() routine is renamed to pg_lsn_in_safe(), forconsistency with other similar routines that are given an escontext.Author: Amul Sul <sulamul@gmail.com>Reviewed-by: Dean Rasheed <dean.a.rasheed@gmail.com>Discussion:https://postgr.es/m/CAAJ_b96No5h5tRuR+KhcC44YcYUCw8WAHuLoqqyyop8_k3+JDQ@mail.gmail.com1 parentd814d7f commitae45312
File tree
3 files changed
+22
-24
lines changed- src
- backend
- access/transam
- utils/adt
- include/utils
3 files changed
+22
-24
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4834 | 4834 |
| |
4835 | 4835 |
| |
4836 | 4836 |
| |
4837 |
| - | |
| 4837 | + | |
4838 | 4838 |
| |
4839 |
| - | |
4840 |
| - | |
| 4839 | + | |
| 4840 | + | |
4841 | 4841 |
| |
4842 | 4842 |
| |
4843 | 4843 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
| 28 | + | |
| 29 | + | |
| 30 | + | |
28 | 31 |
| |
29 |
| - | |
| 32 | + | |
30 | 33 |
| |
31 | 34 |
| |
32 | 35 |
| |
33 | 36 |
| |
34 | 37 |
| |
35 | 38 |
| |
36 | 39 |
| |
37 |
| - | |
38 |
| - | |
39 |
| - | |
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
43 |
| - | |
44 |
| - | |
45 |
| - | |
46 |
| - | |
| 43 | + | |
| 44 | + | |
47 | 45 |
| |
48 | 46 |
| |
49 |
| - | |
50 |
| - | |
51 |
| - | |
52 |
| - | |
| 47 | + | |
53 | 48 |
| |
54 | 49 |
| |
55 | 50 |
| |
56 | 51 |
| |
57 | 52 |
| |
58 | 53 |
| |
59 | 54 |
| |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
60 | 61 |
| |
61 | 62 |
| |
62 | 63 |
| |
63 | 64 |
| |
64 | 65 |
| |
65 | 66 |
| |
66 | 67 |
| |
67 |
| - | |
68 |
| - | |
69 |
| - | |
70 |
| - | |
71 |
| - | |
72 |
| - | |
73 |
| - | |
74 |
| - | |
| 68 | + | |
| 69 | + | |
75 | 70 |
| |
76 | 71 |
| |
77 | 72 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
| 21 | + | |
| 22 | + | |
| 23 | + | |
21 | 24 |
| |
22 | 25 |
| |
23 | 26 |
| |
| |||
33 | 36 |
| |
34 | 37 |
| |
35 | 38 |
| |
36 |
| - | |
| 39 | + | |
37 | 40 |
| |
38 | 41 |
|
0 commit comments
Comments
(0)