Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f24fa9c

Browse files
committed
Fix pg_dump's dump order for collations versus extensions.
Mixing them together alphabetically won't be nice. Per my gripe of 2011-02-12.
1 parent a8a8a3e commit f24fa9c

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

src/bin/pg_dump/pg_dump_sort.c

+28-28
Original file line numberDiff line numberDiff line change
@@ -68,35 +68,35 @@ static const int oldObjectTypePriority[] =
6868
static const int newObjectTypePriority[] =
6969
{
7070
1, /* DO_NAMESPACE */
71-
3, /* DO_EXTENSION */
72-
4, /* DO_TYPE */
73-
4, /* DO_SHELL_TYPE */
74-
5, /* DO_FUNC */
75-
6, /* DO_AGG */
76-
7, /* DO_OPERATOR */
77-
8, /* DO_OPCLASS */
78-
8, /* DO_OPFAMILY */
79-
10, /* DO_CONVERSION */
80-
17, /* DO_TABLE */
81-
19, /* DO_ATTRDEF */
82-
24, /* DO_INDEX */
83-
25, /* DO_RULE */
84-
26, /* DO_TRIGGER */
85-
23, /* DO_CONSTRAINT */
86-
27, /* DO_FK_CONSTRAINT */
71+
4, /* DO_EXTENSION */
72+
5, /* DO_TYPE */
73+
5, /* DO_SHELL_TYPE */
74+
6, /* DO_FUNC */
75+
7, /* DO_AGG */
76+
8, /* DO_OPERATOR */
77+
9, /* DO_OPCLASS */
78+
9, /* DO_OPFAMILY */
79+
11, /* DO_CONVERSION */
80+
18, /* DO_TABLE */
81+
20, /* DO_ATTRDEF */
82+
25, /* DO_INDEX */
83+
26, /* DO_RULE */
84+
27, /* DO_TRIGGER */
85+
24, /* DO_CONSTRAINT */
86+
28, /* DO_FK_CONSTRAINT */
8787
2, /* DO_PROCLANG */
88-
9, /* DO_CAST */
89-
21, /* DO_TABLE_DATA */
90-
18, /* DO_DUMMY_TYPE */
91-
11, /* DO_TSPARSER */
92-
13, /* DO_TSDICT */
93-
12, /* DO_TSTEMPLATE */
94-
14, /* DO_TSCONFIG */
95-
15, /* DO_FDW */
96-
16, /* DO_FOREIGN_SERVER */
97-
28, /* DO_DEFAULT_ACL */
98-
20, /* DO_BLOB */
99-
22, /* DO_BLOB_DATA */
88+
10, /* DO_CAST */
89+
22, /* DO_TABLE_DATA */
90+
19, /* DO_DUMMY_TYPE */
91+
12, /* DO_TSPARSER */
92+
14, /* DO_TSDICT */
93+
13, /* DO_TSTEMPLATE */
94+
15, /* DO_TSCONFIG */
95+
16, /* DO_FDW */
96+
17, /* DO_FOREIGN_SERVER */
97+
29, /* DO_DEFAULT_ACL */
98+
21, /* DO_BLOB */
99+
23, /* DO_BLOB_DATA */
100100
3 /* DO_COLLATION */
101101
};
102102

0 commit comments

Comments
 (0)