forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1ace786
committed
Fix dumping of security_barrier views with circular dependencies.
If a view has circular dependencies, pg_dump splits it into a CREATE TABLEand a CREATE RULE command to break the dependency loop. However, if theview has reloptions, those options cannot be applied in the CREATE TABLEcommand, because views and tables have different allowed reloptions soCREATE TABLE would reject them. Instead apply the reloptions after theCREATE RULE, using ALTER VIEW SET.1 parente0badf6 commit1ace786
3 files changed
+34
-6
lines changedLines changed: 21 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5062 | 5062 |
| |
5063 | 5063 |
| |
5064 | 5064 |
| |
| 5065 | + | |
| 5066 | + | |
| 5067 | + | |
| 5068 | + | |
| 5069 | + | |
| 5070 | + | |
| 5071 | + | |
| 5072 | + | |
| 5073 | + | |
| 5074 | + | |
5065 | 5075 |
| |
5066 | 5076 |
| |
5067 | 5077 |
| |
| |||
13724 | 13734 |
| |
13725 | 13735 |
| |
13726 | 13736 |
| |
13727 |
| - | |
13728 |
| - | |
13729 |
| - | |
13730 |
| - | |
| 13737 | + | |
13731 | 13738 |
| |
13732 | 13739 |
| |
13733 | 13740 |
| |
| |||
13745 | 13752 |
| |
13746 | 13753 |
| |
13747 | 13754 |
| |
| 13755 | + | |
| 13756 | + | |
| 13757 | + | |
| 13758 | + | |
| 13759 | + | |
| 13760 | + | |
| 13761 | + | |
| 13762 | + | |
| 13763 | + | |
| 13764 | + | |
13748 | 13765 |
| |
13749 | 13766 |
| |
13750 | 13767 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
332 | 332 |
| |
333 | 333 |
| |
334 | 334 |
| |
| 335 | + | |
| 336 | + | |
335 | 337 |
| |
336 | 338 |
| |
337 | 339 |
| |
|
Lines changed: 11 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
722 | 722 |
| |
723 | 723 |
| |
724 | 724 |
| |
| 725 | + | |
| 726 | + | |
| 727 | + | |
725 | 728 |
| |
726 | 729 |
| |
727 | 730 |
| |
728 |
| - | |
| 731 | + | |
729 | 732 |
| |
730 |
| - | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
731 | 740 |
| |
732 | 741 |
| |
733 | 742 |
| |
|
0 commit comments
Comments
(0)