forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit344487e
committed
Tweak behavior of pg_dump --extension with configuration tables
6568cef, that introduced the option, had an inconsistent behavior whenit comes to configuration tables set up by pg_extension_config_dump, asthe data of all configuration tables would included in a dump even forextensions not listed by a set of --extension switches.The contents dumped changed depending on the schema where an extensionwas installed when an extension was not listed. For example, anextension installed under the public schema would have its configurationdata not dumped even when not listed with --extension, which wasinconsistent with the case of an extension installed on a non-publicschema, where the configuration would be dumped.Per discussion with Noah, we have settled down to the simple rule ofdumping configuration data of an extension if it is listed in--extension (default is unchanged and backward-compatible, to dumpeverything on sight if there are no extensions directly listed). Thisavoids some weird cases where the dumps depended on a --schema for one.More tests are added to cover the gap, where we cross-check morebehaviors depending on --schema when an extension is not listed.Reported-by: Noah MischReviewed-by: Noah MischDiscussion:https://postgr.es/m/20210404220802.GA728316@rfd.leadboat.com1 parente1623b7 commit344487e
File tree
3 files changed
+51
-1
lines changed- doc/src/sgml/ref
- src
- bin/pg_dump
- test/modules/test_pg_dump/t
3 files changed
+51
-1
lines changedLines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
234 | 234 |
| |
235 | 235 |
| |
236 | 236 |
| |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
237 | 243 |
| |
238 | 244 |
| |
239 | 245 |
| |
|
Lines changed: 11 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18271 | 18271 |
| |
18272 | 18272 |
| |
18273 | 18273 |
| |
18274 |
| - | |
| 18274 | + | |
| 18275 | + | |
18275 | 18276 |
| |
18276 | 18277 |
| |
18277 | 18278 |
| |
| |||
18283 | 18284 |
| |
18284 | 18285 |
| |
18285 | 18286 |
| |
| 18287 | + | |
| 18288 | + | |
| 18289 | + | |
| 18290 | + | |
| 18291 | + | |
| 18292 | + | |
| 18293 | + | |
| 18294 | + | |
| 18295 | + | |
18286 | 18296 |
| |
18287 | 18297 |
| |
18288 | 18298 |
| |
|
Lines changed: 34 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
208 | 208 |
| |
209 | 209 |
| |
210 | 210 |
| |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
211 | 239 |
| |
212 | 240 |
| |
213 | 241 |
| |
| |||
632 | 660 |
| |
633 | 661 |
| |
634 | 662 |
| |
| 663 | + | |
| 664 | + | |
635 | 665 |
| |
636 | 666 |
| |
637 | 667 |
| |
| |||
646 | 676 |
| |
647 | 677 |
| |
648 | 678 |
| |
| 679 | + | |
| 680 | + | |
649 | 681 |
| |
650 | 682 |
| |
651 | 683 |
| |
| |||
662 | 694 |
| |
663 | 695 |
| |
664 | 696 |
| |
| 697 | + | |
| 698 | + | |
665 | 699 |
| |
666 | 700 |
| |
667 | 701 |
| |
|
0 commit comments
Comments
(0)