forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitcddcf78
committed
Clarify some errors in pg_receivewal when closing WAL segments
A WAL segment closed during a WAL stream for pg_receivewal wouldgenerate incorrect error messages depending on the context, as the filename used when referring to a WAL segment ignored partial files or thecompression method used. In such cases, the error message generated(failure on close, seek or rename) would not match a physical filename. The same code paths are used by pg_basebackup, but it uses nopartial suffix so it is not impacted.7fbe0c8 has introduced in walmethods.c a callback to get the exactphysical file name used for a given context, this commit makes use of itto improve those error messages. This could be extended to more codepaths of pg_basebackup/ in the future, if necessary.Extracted from a larger patch by the same author.Author: Georgios KokolatosDiscussion:https://postgr.es/m/ZCm1J5vfyQ2E6dYvXz8si39HQ2gwxSZ3IpYaVgYa3lUwY88SLapx9EEnOf5uEwrddhx2twG7zYKjVeuP5MwZXCNPybtsGouDsAD1o2L_I5E=@pm.me1 parent5adb067 commitcddcf78
1 file changed
+14
-4
lines changedLines changed: 14 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
185 | 185 |
| |
186 | 186 |
| |
187 | 187 |
| |
| 188 | + | |
188 | 189 |
| |
189 | 190 |
| |
190 | 191 |
| |
191 | 192 |
| |
192 | 193 |
| |
193 | 194 |
| |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
194 | 199 |
| |
| 200 | + | |
195 | 201 |
| |
196 | 202 |
| |
197 | 203 |
| |
198 |
| - | |
| 204 | + | |
199 | 205 |
| |
200 | 206 |
| |
201 | 207 |
| |
| 208 | + | |
202 | 209 |
| |
203 | 210 |
| |
204 | 211 |
| |
| |||
208 | 215 |
| |
209 | 216 |
| |
210 | 217 |
| |
211 |
| - | |
212 |
| - | |
| 218 | + | |
213 | 219 |
| |
214 | 220 |
| |
215 | 221 |
| |
| |||
221 | 227 |
| |
222 | 228 |
| |
223 | 229 |
| |
224 |
| - | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
225 | 233 |
| |
226 | 234 |
| |
227 | 235 |
| |
| 236 | + | |
| 237 | + | |
228 | 238 |
| |
229 | 239 |
| |
230 | 240 |
| |
|
0 commit comments
Comments
(0)