Commit f2cbffc
committed
Only allow one recovery target setting
The previous recovery.conf regime accepted multiple recovery_target*
settings and used the last one. This does not translate well to the
general GUC system. Specifically, under EXEC_BACKEND, the settings
are written out not in any particular order, so the order in which
they were originally set is not available to new processes.
Rather than redesign the GUC system, it was decided to abandon the old
behavior and only allow one recovery target setting. A second setting
will cause an error. However, it is allowed to set the same parameter
multiple times or unset a parameter and set a different one.
Discussion: https://www.postgresql.org/message-id/flat/27802171543235530%40iva2-6ec8f0a6115e.qloud-c.yandex.net#701a59c837ad0bf8c244344aaf3ef5a41 parent eae9143 commit f2cbffc
File tree
3 files changed
+62
-32
lines changed- doc/src/sgml
- src
- backend/utils/misc
- test/recovery/t
3 files changed
+62
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3221 | 3221 | | |
3222 | 3222 | | |
3223 | 3223 | | |
3224 | | - | |
| 3224 | + | |
3225 | 3225 | | |
3226 | 3226 | | |
3227 | 3227 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11051 | 11051 | | |
11052 | 11052 | | |
11053 | 11053 | | |
| 11054 | + | |
| 11055 | + | |
| 11056 | + | |
| 11057 | + | |
| 11058 | + | |
| 11059 | + | |
| 11060 | + | |
| 11061 | + | |
| 11062 | + | |
| 11063 | + | |
| 11064 | + | |
| 11065 | + | |
| 11066 | + | |
| 11067 | + | |
| 11068 | + | |
| 11069 | + | |
| 11070 | + | |
| 11071 | + | |
| 11072 | + | |
| 11073 | + | |
| 11074 | + | |
| 11075 | + | |
11054 | 11076 | | |
11055 | 11077 | | |
11056 | 11078 | | |
| |||
11065 | 11087 | | |
11066 | 11088 | | |
11067 | 11089 | | |
| 11090 | + | |
| 11091 | + | |
| 11092 | + | |
| 11093 | + | |
11068 | 11094 | | |
11069 | 11095 | | |
11070 | 11096 | | |
11071 | | - | |
11072 | | - | |
11073 | | - | |
11074 | | - | |
11075 | 11097 | | |
11076 | 11098 | | |
11077 | 11099 | | |
| |||
11098 | 11120 | | |
11099 | 11121 | | |
11100 | 11122 | | |
| 11123 | + | |
| 11124 | + | |
| 11125 | + | |
| 11126 | + | |
11101 | 11127 | | |
11102 | 11128 | | |
11103 | 11129 | | |
| |||
11161 | 11187 | | |
11162 | 11188 | | |
11163 | 11189 | | |
| 11190 | + | |
| 11191 | + | |
| 11192 | + | |
| 11193 | + | |
11164 | 11194 | | |
11165 | 11195 | | |
11166 | 11196 | | |
| |||
11186 | 11216 | | |
11187 | 11217 | | |
11188 | 11218 | | |
| 11219 | + | |
| 11220 | + | |
| 11221 | + | |
| 11222 | + | |
11189 | 11223 | | |
11190 | 11224 | | |
11191 | 11225 | | |
| |||
11240 | 11274 | | |
11241 | 11275 | | |
11242 | 11276 | | |
| 11277 | + | |
| 11278 | + | |
| 11279 | + | |
| 11280 | + | |
11243 | 11281 | | |
11244 | 11282 | | |
11245 | 11283 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
139 | 124 | | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
0 commit comments