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.
This commit is contained in:
Tom Lane 2011-03-06 18:26:18 -05:00
parent a8a8a3e096
commit f24fa9c1a5

View File

@ -68,35 +68,35 @@ static const int oldObjectTypePriority[] =
static const int newObjectTypePriority[] = static const int newObjectTypePriority[] =
{ {
1, /* DO_NAMESPACE */ 1, /* DO_NAMESPACE */
3, /* DO_EXTENSION */ 4, /* DO_EXTENSION */
4, /* DO_TYPE */ 5, /* DO_TYPE */
4, /* DO_SHELL_TYPE */ 5, /* DO_SHELL_TYPE */
5, /* DO_FUNC */ 6, /* DO_FUNC */
6, /* DO_AGG */ 7, /* DO_AGG */
7, /* DO_OPERATOR */ 8, /* DO_OPERATOR */
8, /* DO_OPCLASS */ 9, /* DO_OPCLASS */
8, /* DO_OPFAMILY */ 9, /* DO_OPFAMILY */
10, /* DO_CONVERSION */ 11, /* DO_CONVERSION */
17, /* DO_TABLE */ 18, /* DO_TABLE */
19, /* DO_ATTRDEF */ 20, /* DO_ATTRDEF */
24, /* DO_INDEX */ 25, /* DO_INDEX */
25, /* DO_RULE */ 26, /* DO_RULE */
26, /* DO_TRIGGER */ 27, /* DO_TRIGGER */
23, /* DO_CONSTRAINT */ 24, /* DO_CONSTRAINT */
27, /* DO_FK_CONSTRAINT */ 28, /* DO_FK_CONSTRAINT */
2, /* DO_PROCLANG */ 2, /* DO_PROCLANG */
9, /* DO_CAST */ 10, /* DO_CAST */
21, /* DO_TABLE_DATA */ 22, /* DO_TABLE_DATA */
18, /* DO_DUMMY_TYPE */ 19, /* DO_DUMMY_TYPE */
11, /* DO_TSPARSER */ 12, /* DO_TSPARSER */
13, /* DO_TSDICT */ 14, /* DO_TSDICT */
12, /* DO_TSTEMPLATE */ 13, /* DO_TSTEMPLATE */
14, /* DO_TSCONFIG */ 15, /* DO_TSCONFIG */
15, /* DO_FDW */ 16, /* DO_FDW */
16, /* DO_FOREIGN_SERVER */ 17, /* DO_FOREIGN_SERVER */
28, /* DO_DEFAULT_ACL */ 29, /* DO_DEFAULT_ACL */
20, /* DO_BLOB */ 21, /* DO_BLOB */
22, /* DO_BLOB_DATA */ 23, /* DO_BLOB_DATA */
3 /* DO_COLLATION */ 3 /* DO_COLLATION */
}; };