forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit390081e
committed
Fix a pg_dump output ordering problem introduced in 8.3 by the addition of
array types for composite types. Although pg_dump understood it wasn'tsupposed to dump these array types as separate objects, it must includethem in the dependency ordering analysis, and it was improperly assigning themthe same relatively-high sort priority as regular types. This resulted ineffectively moving composite types and tables up to that same high priority,which broke any ordering requirements that weren't explicitly enforced bydependencies. In particular user-defined operator classes, which should comeout before tables, failed to do so. Per report from Brendan Jurd.In passing, also fix an ill-considered decision to give text search objectsthe same sort priority as functions and operators --- the sort result looksa lot nicer if different object types are kept separate. The recentforeign-data patch had copied that decision, making the sort ordering evenmessier :-(1 parentfd1d4b3 commit390081e
3 files changed
+50
-47
lines changedLines changed: 24 additions & 23 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 |
| - | |
| 15 | + | |
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
| |||
1008 | 1008 |
| |
1009 | 1009 |
| |
1010 | 1010 |
| |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
1011 | 1017 |
| |
1012 | 1018 |
| |
1013 | 1019 |
| |
1014 | 1020 |
| |
1015 |
| - | |
1016 |
| - | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
1017 | 1025 |
| |
| 1026 | + | |
| 1027 | + | |
1018 | 1028 |
| |
1019 |
| - | |
1020 |
| - | |
1021 |
| - | |
1022 |
| - | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
1023 | 1038 |
| |
1024 | 1039 |
| |
1025 | 1040 |
| |
1026 | 1041 |
| |
1027 | 1042 |
| |
1028 | 1043 |
| |
1029 |
| - | |
1030 |
| - | |
1031 |
| - | |
1032 |
| - | |
1033 | 1044 |
| |
1034 | 1045 |
| |
1035 | 1046 |
| |
| |||
2310 | 2321 |
| |
2311 | 2322 |
| |
2312 | 2323 |
| |
2313 |
| - | |
2314 |
| - | |
2315 |
| - | |
2316 |
| - | |
2317 |
| - | |
2318 |
| - | |
2319 |
| - | |
2320 |
| - | |
2321 |
| - | |
2322 |
| - | |
2323 | 2324 |
| |
2324 | 2325 |
| |
2325 | 2326 |
| |
| |||
5836 | 5837 |
| |
5837 | 5838 |
| |
5838 | 5839 |
| |
5839 |
| - | |
5840 |
| - | |
| 5840 | + | |
| 5841 | + | |
5841 | 5842 |
| |
5842 | 5843 |
| |
5843 | 5844 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| |||
107 | 107 |
| |
108 | 108 |
| |
109 | 109 |
| |
110 |
| - | |
| 110 | + | |
111 | 111 |
| |
112 | 112 |
| |
113 | 113 |
| |
|
Lines changed: 24 additions & 22 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
| 12 | + | |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 |
| - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
26 | 28 |
| |
27 | 29 |
| |
28 | 30 |
| |
| |||
45 | 47 |
| |
46 | 48 |
| |
47 | 49 |
| |
48 |
| - | |
| 50 | + | |
49 | 51 |
| |
50 | 52 |
| |
51 | 53 |
| |
| |||
71 | 73 |
| |
72 | 74 |
| |
73 | 75 |
| |
74 |
| - | |
75 |
| - | |
76 |
| - | |
77 |
| - | |
78 |
| - | |
79 |
| - | |
80 |
| - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
81 | 83 |
| |
82 | 84 |
| |
83 |
| - | |
84 |
| - | |
85 |
| - | |
86 |
| - | |
87 |
| - | |
88 |
| - | |
89 |
| - | |
90 |
| - | |
91 |
| - | |
92 |
| - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
93 | 95 |
| |
94 | 96 |
| |
95 | 97 |
| |
| |||
1102 | 1104 |
| |
1103 | 1105 |
| |
1104 | 1106 |
| |
1105 |
| - | |
| 1107 | + | |
1106 | 1108 |
| |
1107 |
| - | |
| 1109 | + | |
1108 | 1110 |
| |
1109 | 1111 |
| |
1110 | 1112 |
| |
|
0 commit comments
Comments
(0)