- Notifications
You must be signed in to change notification settings - Fork5
Commit562f06f
committed
pg_dump only selected components of ACCESS METHODs
dumpAccessMethod() didn't get the memo that we now have a bitfield forthe components which should be dumped instead of a simple boolean.Correct that by checking if the relevant bit is set for each componentbeing dumped out (and not dumping it out if it isn't set).This corrects an issue where CREATE ACCESS METHOD commands were beingincluded in non-binary-upgrades when an extension included an accessmethod (as the bloom extensions does).Also add a regression test to make sure that we only dump out theACCESS METHOD commands, when they are part of an extension, when doinga binary upgrade.Pointed out by Thom Brown.1 parent8359077 commit562f06f
File tree
3 files changed
+36
-12
lines changed- src
- bin/pg_dump
- test/modules/test_pg_dump
- t
3 files changed
+36
-12
lines changedLines changed: 14 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12472 | 12472 |
| |
12473 | 12473 |
| |
12474 | 12474 |
| |
12475 |
| - | |
12476 |
| - | |
12477 |
| - | |
12478 |
| - | |
12479 |
| - | |
12480 |
| - | |
12481 |
| - | |
12482 |
| - | |
12483 |
| - | |
| 12475 | + | |
| 12476 | + | |
| 12477 | + | |
| 12478 | + | |
| 12479 | + | |
| 12480 | + | |
| 12481 | + | |
| 12482 | + | |
| 12483 | + | |
| 12484 | + | |
12484 | 12485 |
| |
12485 | 12486 |
| |
12486 |
| - | |
12487 |
| - | |
12488 |
| - | |
| 12487 | + | |
| 12488 | + | |
| 12489 | + | |
| 12490 | + | |
12489 | 12491 |
| |
12490 | 12492 |
| |
12491 | 12493 |
| |
|
Lines changed: 20 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
317 | 317 |
| |
318 | 318 |
| |
319 | 319 |
| |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
320 | 340 |
| |
321 | 341 |
| |
322 | 342 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| 16 | + | |
| 17 | + |
0 commit comments
Comments
(0)