- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit1495eff
committed
Non text modes for pg_dumpall, correspondingly change pg_restore
pg_dumpall acquires a new -F/--format option, with the same meanings aspg_dump. The default is p, meaning plain text. For any other value, adirectory is created containing two files, globals.data and map.dat. Thefirst contains SQL for restoring the global data, and the secondcontains a map from oids to database names. It will also contain asubdirectory called databases, inside which it will create archives inthe specified format, named using the database oids.In these casess the -f argument is required.If pg_restore encounters a directory containing globals.dat, and notoc.dat, it restores the global settings and then restores eachdatabase.pg_restore acquires two new options: -g/--globals-only which suppressesrestoration of any databases, and --exclude-database which inhibitsrestoration of particualr database(s) in the same way the same optionworks in pg_dumpall.Author: Mahendra Singh Thalor <mahi6run@gmail.com>Co-authored-by: Andrew Dunstan <andrew@dunslane.net>Reviewed-by: jian he <jian.universality@gmail.com>Reviewed-by: Srinath Reddy <srinath2133@gmail.com>Reviewed-by: Álvaro Herrera <alvherre@alvh.no-ip.org>Discussion:https://postgr.es/m/cb103623-8ee6-4ba5-a2c9-f32e3a4933fa@dunslane.net1 parent2b69afb commit1495eff
File tree
11 files changed
+1201
-85
lines changed- doc/src/sgml/ref
- src/bin/pg_dump
- t
11 files changed
+1201
-85
lines changedLines changed: 83 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 |
| - | |
| 19 | + | |
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
36 |
| - | |
| 36 | + | |
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
| |||
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
55 |
| - | |
| 55 | + | |
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
59 | 59 |
| |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
60 | 65 |
| |
61 | 66 |
| |
62 | 67 |
| |
| |||
121 | 126 |
| |
122 | 127 |
| |
123 | 128 |
| |
| 129 | + | |
124 | 130 |
| |
125 | 131 |
| |
126 | 132 |
| |
127 | 133 |
| |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
128 | 208 |
| |
129 | 209 |
| |
130 | 210 |
| |
|
Lines changed: 56 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
21 |
| - | |
22 |
| - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
23 | 24 |
| |
24 | 25 |
| |
25 | 26 |
| |
| |||
38 | 39 |
| |
39 | 40 |
| |
40 | 41 |
| |
41 |
| - | |
42 |
| - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
43 | 45 |
| |
44 |
| - | |
45 |
| - | |
| 46 | + | |
| 47 | + | |
46 | 48 |
| |
47 |
| - | |
| 49 | + | |
48 | 50 |
| |
49 | 51 |
| |
50 | 52 |
| |
51 | 53 |
| |
52 | 54 |
| |
53 | 55 |
| |
54 | 56 |
| |
55 |
| - | |
56 |
| - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
57 | 64 |
| |
58 |
| - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
59 | 68 |
| |
60 | 69 |
| |
61 | 70 |
| |
| |||
140 | 149 |
| |
141 | 150 |
| |
142 | 151 |
| |
| 152 | + | |
| 153 | + | |
143 | 154 |
| |
144 | 155 |
| |
145 | 156 |
| |
| |||
166 | 177 |
| |
167 | 178 |
| |
168 | 179 |
| |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
169 | 202 |
| |
170 | 203 |
| |
171 | 204 |
| |
| |||
315 | 348 |
| |
316 | 349 |
| |
317 | 350 |
| |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
318 | 364 |
| |
319 | 365 |
| |
320 | 366 |
| |
|
Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
333 | 333 |
| |
334 | 334 |
| |
335 | 335 |
| |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
336 | 346 |
| |
337 | 347 |
| |
338 | 348 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
315 | 315 |
| |
316 | 316 |
| |
317 | 317 |
| |
318 |
| - | |
| 318 | + | |
319 | 319 |
| |
320 | 320 |
| |
321 | 321 |
| |
|
Lines changed: 13 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
85 | 85 |
| |
86 | 86 |
| |
87 | 87 |
| |
88 |
| - | |
| 88 | + | |
89 | 89 |
| |
90 | 90 |
| |
91 | 91 |
| |
| |||
337 | 337 |
| |
338 | 338 |
| |
339 | 339 |
| |
340 |
| - | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
341 | 346 |
| |
342 |
| - | |
| 347 | + | |
343 | 348 |
| |
344 | 349 |
| |
345 | 350 |
| |
| |||
456 | 461 |
| |
457 | 462 |
| |
458 | 463 |
| |
459 |
| - | |
| 464 | + | |
460 | 465 |
| |
461 | 466 |
| |
462 | 467 |
| |
| |||
1295 | 1300 |
| |
1296 | 1301 |
| |
1297 | 1302 |
| |
1298 |
| - | |
| 1303 | + | |
1299 | 1304 |
| |
1300 | 1305 |
| |
1301 | 1306 |
| |
| |||
1674 | 1679 |
| |
1675 | 1680 |
| |
1676 | 1681 |
| |
1677 |
| - | |
| 1682 | + | |
| 1683 | + | |
1678 | 1684 |
| |
1679 | 1685 |
| |
1680 | 1686 |
| |
| |||
1694 | 1700 |
| |
1695 | 1701 |
| |
1696 | 1702 |
| |
1697 |
| - | |
| 1703 | + | |
1698 | 1704 |
| |
1699 | 1705 |
| |
1700 | 1706 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
390 | 390 |
| |
391 | 391 |
| |
392 | 392 |
| |
| 393 | + | |
393 | 394 |
| |
394 | 395 |
| |
395 | 396 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
826 | 826 |
| |
827 | 827 |
| |
828 | 828 |
| |
829 |
| - | |
| 829 | + | |
830 | 830 |
| |
831 | 831 |
| |
832 | 832 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1222 | 1222 |
| |
1223 | 1223 |
| |
1224 | 1224 |
| |
1225 |
| - | |
| 1225 | + | |
1226 | 1226 |
| |
1227 | 1227 |
| |
1228 | 1228 |
| |
|
0 commit comments
Comments
(0)