- Notifications
You must be signed in to change notification settings - Fork5
Commit5b5fea2
committed
Access pg_dump's options structs through Archive struct, not directly.
Rather than passing around DumpOptions and RestoreOptions as separatearguments, add fields to struct Archive to carry pointers to these objects,and access them through those fields when needed. There already was aRestoreOptions pointer in Archive, though for no obvious reason it was partof the "private" struct rather than out where pg_dump.c could see it.Doing this allows reversion of quite a lot of parameter-addition changesmade in commit0eea804, which is a good thing IMO because this willreduce the code delta between 9.4 and 9.5, probably easing a few futureback-patch efforts. Moreover, the previous commit only added a DumpOptionsargument to functions that had to have it at the time, which means we couldanticipate still more code churn (and more back-patch hazard) as therequirement spread further. I'd hit exactly that problem in my upcomingpatch to fix extension membership marking, which is what motivated me todo this.1 parent26905e0 commit5b5fea2
File tree
13 files changed
+486
-405
lines changed- src/bin/pg_dump
13 files changed
+486
-405
lines changedLines changed: 10 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
81 | 81 |
| |
82 | 82 |
| |
83 | 83 |
| |
84 |
| - | |
| 84 | + | |
85 | 85 |
| |
86 | 86 |
| |
87 | 87 |
| |
| |||
118 | 118 |
| |
119 | 119 |
| |
120 | 120 |
| |
121 |
| - | |
| 121 | + | |
122 | 122 |
| |
123 | 123 |
| |
124 | 124 |
| |
125 | 125 |
| |
126 | 126 |
| |
127 | 127 |
| |
128 | 128 |
| |
129 |
| - | |
| 129 | + | |
130 | 130 |
| |
131 | 131 |
| |
132 | 132 |
| |
133 |
| - | |
| 133 | + | |
134 | 134 |
| |
135 | 135 |
| |
136 | 136 |
| |
| |||
146 | 146 |
| |
147 | 147 |
| |
148 | 148 |
| |
149 |
| - | |
| 149 | + | |
150 | 150 |
| |
151 | 151 |
| |
152 | 152 |
| |
| |||
187 | 187 |
| |
188 | 188 |
| |
189 | 189 |
| |
190 |
| - | |
| 190 | + | |
191 | 191 |
| |
192 | 192 |
| |
193 | 193 |
| |
| |||
200 | 200 |
| |
201 | 201 |
| |
202 | 202 |
| |
203 |
| - | |
| 203 | + | |
204 | 204 |
| |
205 | 205 |
| |
206 | 206 |
| |
| |||
221 | 221 |
| |
222 | 222 |
| |
223 | 223 |
| |
224 |
| - | |
| 224 | + | |
225 | 225 |
| |
226 | 226 |
| |
227 | 227 |
| |
| |||
230 | 230 |
| |
231 | 231 |
| |
232 | 232 |
| |
233 |
| - | |
| 233 | + | |
234 | 234 |
| |
235 | 235 |
| |
236 | 236 |
| |
237 |
| - | |
| 237 | + | |
238 | 238 |
| |
239 | 239 |
| |
240 | 240 |
| |
|
Lines changed: 10 additions & 20 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
49 |
| - | |
50 |
| - | |
51 | 49 |
| |
52 | 50 |
| |
53 | 51 |
| |
| |||
87 | 85 |
| |
88 | 86 |
| |
89 | 87 |
| |
90 |
| - | |
91 |
| - | |
92 |
| - | |
| 88 | + | |
93 | 89 |
| |
94 | 90 |
| |
95 | 91 |
| |
96 |
| - | |
| 92 | + | |
97 | 93 |
| |
98 | 94 |
| |
99 | 95 |
| |
| |||
435 | 431 |
| |
436 | 432 |
| |
437 | 433 |
| |
438 |
| - | |
439 |
| - | |
440 |
| - | |
| 434 | + | |
441 | 435 |
| |
442 | 436 |
| |
443 | 437 |
| |
| |||
446 | 440 |
| |
447 | 441 |
| |
448 | 442 |
| |
449 |
| - | |
| 443 | + | |
450 | 444 |
| |
451 | 445 |
| |
452 | 446 |
| |
453 |
| - | |
| 447 | + | |
454 | 448 |
| |
455 | 449 |
| |
456 | 450 |
| |
| |||
463 | 457 |
| |
464 | 458 |
| |
465 | 459 |
| |
466 |
| - | |
467 |
| - | |
468 | 460 |
| |
469 | 461 |
| |
470 | 462 |
| |
471 | 463 |
| |
472 |
| - | |
| 464 | + | |
473 | 465 |
| |
474 | 466 |
| |
475 | 467 |
| |
| |||
483 | 475 |
| |
484 | 476 |
| |
485 | 477 |
| |
486 |
| - | |
| 478 | + | |
487 | 479 |
| |
488 | 480 |
| |
489 | 481 |
| |
| |||
545 | 537 |
| |
546 | 538 |
| |
547 | 539 |
| |
548 |
| - | |
549 |
| - | |
550 | 540 |
| |
551 | 541 |
| |
552 | 542 |
| |
| |||
601 | 591 |
| |
602 | 592 |
| |
603 | 593 |
| |
604 |
| - | |
| 594 | + | |
605 | 595 |
| |
606 | 596 |
| |
607 | 597 |
| |
| |||
859 | 849 |
| |
860 | 850 |
| |
861 | 851 |
| |
862 |
| - | |
| 852 | + | |
863 | 853 |
| |
864 | 854 |
| |
865 | 855 |
| |
| |||
899 | 889 |
| |
900 | 890 |
| |
901 | 891 |
| |
902 |
| - | |
| 892 | + | |
903 | 893 |
| |
904 | 894 |
| |
905 | 895 |
| |
|
Lines changed: 1 addition & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
76 | 76 |
| |
77 | 77 |
| |
78 | 78 |
| |
79 |
| - | |
80 |
| - | |
81 |
| - | |
| 79 | + | |
82 | 80 |
| |
83 | 81 |
| |
84 | 82 |
| |
|
Lines changed: 40 additions & 35 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
61 |
| - | |
62 |
| - | |
63 |
| - | |
64 |
| - | |
65 |
| - | |
66 |
| - | |
67 |
| - | |
68 |
| - | |
69 |
| - | |
70 |
| - | |
71 |
| - | |
72 |
| - | |
73 |
| - | |
74 |
| - | |
75 |
| - | |
76 |
| - | |
77 |
| - | |
78 |
| - | |
79 |
| - | |
80 |
| - | |
81 |
| - | |
82 |
| - | |
83 |
| - | |
84 |
| - | |
85 |
| - | |
86 |
| - | |
87 |
| - | |
88 |
| - | |
89 |
| - | |
90 | 61 |
| |
91 | 62 |
| |
92 | 63 |
| |
| |||
190 | 161 |
| |
191 | 162 |
| |
192 | 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 | + | |
193 | 196 |
| |
194 | 197 |
| |
195 | 198 |
| |
| |||
215 | 218 |
| |
216 | 219 |
| |
217 | 220 |
| |
218 |
| - | |
| 221 | + | |
219 | 222 |
| |
220 |
| - | |
| 223 | + | |
221 | 224 |
| |
222 | 225 |
| |
223 | 226 |
| |
| |||
250 | 253 |
| |
251 | 254 |
| |
252 | 255 |
| |
253 |
| - | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
254 | 259 |
| |
255 |
| - | |
| 260 | + | |
256 | 261 |
| |
257 | 262 |
| |
258 | 263 |
| |
| |||
265 | 270 |
| |
266 | 271 |
| |
267 | 272 |
| |
268 |
| - | |
| 273 | + | |
269 | 274 |
| |
270 | 275 |
| |
271 | 276 |
| |
| |||
274 | 279 |
| |
275 | 280 |
| |
276 | 281 |
| |
277 |
| - | |
| 282 | + | |
278 | 283 |
| |
279 | 284 |
| |
280 | 285 |
| |
|
0 commit comments
Comments
(0)