forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb2de45f
committed
pg_basebackup: Avoid unclean failure with server-compression and -D -.
Fail with a suitable error message instead. We can't inject the backupmanifest into the output tarfile without decompressing it, and ifwe did that, we'd have to recompress the tarfile afterwards to producethe result the user is expecting. While we have enough infrastructurein pg_basebackup now to accomplish that whole series of steps withoutmuch additional code, it seems like excessively surprising behavior.The user probably did not select server-side compression with the ideathat the client was going to end up decompressing it and thenrecompressing.Report from Justin Pryzby. Fix by me.Discussion:http://postgr.es/m/CA+Tgmob6Rnjz-Qv32h3yJn8nnUkLhrtQDAS4y5AtsgtorAFHRA@mail.gmail.com1 parente94bb14 commitb2de45f
1 file changed
+21
-3
lines changedLines changed: 21 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1208 | 1208 |
| |
1209 | 1209 |
| |
1210 | 1210 |
| |
1211 |
| - | |
| 1211 | + | |
| 1212 | + | |
1212 | 1213 |
| |
1213 | 1214 |
| |
1214 | 1215 |
| |
| |||
1235 | 1236 |
| |
1236 | 1237 |
| |
1237 | 1238 |
| |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
1238 | 1257 |
| |
1239 | 1258 |
| |
1240 | 1259 |
| |
| |||
1244 | 1263 |
| |
1245 | 1264 |
| |
1246 | 1265 |
| |
1247 |
| - | |
1248 |
| - | |
| 1266 | + | |
1249 | 1267 |
| |
1250 | 1268 |
| |
1251 | 1269 |
| |
|
0 commit comments
Comments
(0)