Commit 0f524ea
committed
Fix dumping of security_barrier views with circular dependencies.
If a view has circular dependencies, pg_dump splits it into a CREATE TABLE
and a CREATE RULE command to break the dependency loop. However, if the
view has reloptions, those options cannot be applied in the CREATE TABLE
command, because views and tables have different allowed reloptions so
CREATE TABLE would reject them. Instead apply the reloptions after the
CREATE RULE, using ALTER VIEW SET.1 parent 4b373e4 commit 0f524ea
3 files changed
+34
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5064 | 5064 | | |
5065 | 5065 | | |
5066 | 5066 | | |
| 5067 | + | |
| 5068 | + | |
| 5069 | + | |
| 5070 | + | |
| 5071 | + | |
| 5072 | + | |
| 5073 | + | |
| 5074 | + | |
| 5075 | + | |
| 5076 | + | |
5067 | 5077 | | |
5068 | 5078 | | |
5069 | 5079 | | |
| |||
13873 | 13883 | | |
13874 | 13884 | | |
13875 | 13885 | | |
13876 | | - | |
13877 | | - | |
13878 | | - | |
13879 | | - | |
| 13886 | + | |
13880 | 13887 | | |
13881 | 13888 | | |
13882 | 13889 | | |
| |||
13894 | 13901 | | |
13895 | 13902 | | |
13896 | 13903 | | |
| 13904 | + | |
| 13905 | + | |
| 13906 | + | |
| 13907 | + | |
| 13908 | + | |
| 13909 | + | |
| 13910 | + | |
| 13911 | + | |
| 13912 | + | |
| 13913 | + | |
13897 | 13914 | | |
13898 | 13915 | | |
13899 | 13916 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
| 336 | + | |
| 337 | + | |
336 | 338 | | |
337 | 339 | | |
338 | 340 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
725 | 725 | | |
726 | 726 | | |
727 | 727 | | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
728 | 731 | | |
729 | 732 | | |
730 | 733 | | |
731 | | - | |
| 734 | + | |
732 | 735 | | |
733 | | - | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
734 | 743 | | |
735 | 744 | | |
736 | 745 | | |
| |||
0 commit comments