- Notifications
You must be signed in to change notification settings - Fork28
Commit82ebda7
committed
Fix pg_dump's handling of event triggers.
pg_dump with the --clean option failed to emit DROP EVENT TRIGGERcommands for event triggers. In a closely related oversight,it also did not emit ALTER OWNER commands for event triggers.Since only superusers can create event triggers, the latter oversightis of little practical consequence ... but if we're going to recordan owner for event triggers, then surely pg_dump should preserve it.Per complaint from Greg Atkins. Back-patch to 9.3 where event triggerswere introduced.Discussion:https://postgr.es/m/20170722191142.yi4e7tzcg3iacclg@gmail.com1 parent73fbf3d commit82ebda7
File tree
3 files changed
+24
-12
lines changed- src/bin/pg_dump
- t
3 files changed
+24
-12
lines changedLines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3267 | 3267 |
| |
3268 | 3268 |
| |
3269 | 3269 |
| |
| 3270 | + | |
3270 | 3271 |
| |
3271 | 3272 |
| |
3272 | 3273 |
| |
| |||
3311 | 3312 |
| |
3312 | 3313 |
| |
3313 | 3314 |
| |
3314 |
| - | |
| 3315 | + | |
3315 | 3316 |
| |
3316 | 3317 |
| |
3317 | 3318 |
| |
| |||
3470 | 3471 |
| |
3471 | 3472 |
| |
3472 | 3473 |
| |
| 3474 | + | |
3473 | 3475 |
| |
3474 | 3476 |
| |
3475 | 3477 |
| |
| |||
3505 | 3507 |
| |
3506 | 3508 |
| |
3507 | 3509 |
| |
3508 |
| - | |
| 3510 | + | |
3509 | 3511 |
| |
3510 | 3512 |
| |
3511 | 3513 |
| |
|
Lines changed: 12 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16978 | 16978 |
| |
16979 | 16979 |
| |
16980 | 16980 |
| |
| 16981 | + | |
16981 | 16982 |
| |
16982 | 16983 |
| |
16983 | 16984 |
| |
16984 | 16985 |
| |
16985 | 16986 |
| |
16986 | 16987 |
| |
16987 | 16988 |
| |
| 16989 | + | |
16988 | 16990 |
| |
16989 | 16991 |
| |
16990 | 16992 |
| |
| |||
17024 | 17026 |
| |
17025 | 17027 |
| |
17026 | 17028 |
| |
| 17029 | + | |
| 17030 | + | |
| 17031 | + | |
| 17032 | + | |
17027 | 17033 |
| |
17028 | 17034 |
| |
17029 | 17035 |
| |
17030 | 17036 |
| |
17031 | 17037 |
| |
17032 |
| - | |
| 17038 | + | |
| 17039 | + | |
17033 | 17040 |
| |
17034 |
| - | |
| 17041 | + | |
| 17042 | + | |
| 17043 | + | |
17035 | 17044 |
| |
17036 | 17045 |
| |
17037 | 17046 |
| |
17038 | 17047 |
| |
17039 | 17048 |
| |
17040 | 17049 |
| |
17041 | 17050 |
| |
| 17051 | + | |
17042 | 17052 |
| |
17043 | 17053 |
| |
17044 | 17054 |
| |
|
Lines changed: 8 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
516 | 516 |
| |
517 | 517 |
| |
518 | 518 |
| |
519 |
| - | |
520 |
| - | |
521 |
| - | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
522 | 522 |
| |
523 | 523 |
| |
524 | 524 |
| |
525 | 525 |
| |
526 |
| - | |
| 526 | + | |
| 527 | + | |
527 | 528 |
| |
528 |
| - | |
| 529 | + | |
529 | 530 |
| |
530 |
| - | |
| 531 | + | |
531 | 532 |
| |
532 | 533 |
| |
533 | 534 |
| |
| |||
543 | 544 |
| |
544 | 545 |
| |
545 | 546 |
| |
546 |
| - | |
547 |
| - | |
| 547 | + | |
548 | 548 |
| |
549 | 549 |
| |
550 | 550 |
| |
|
0 commit comments
Comments
(0)