Skip to content

Commit 46ca9c2

Browse files
committed
Fix package priority index in pg_dump_sort
The priority table mistakenly indexed the package entry with PRIO_PACKAGE instead of DO_PACKAGE key. Under Clang, that collides with another designated initializer and overwrites a later entry. Warning excerpt: ``` pg_dump_sort.c:117:23: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] ```
1 parent 0da228b commit 46ca9c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/bin/pg_dump/pg_dump_sort.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ static const int dbObjectTypePriority[] =
110110
[DO_EXTENSION] = PRIO_EXTENSION,
111111
[DO_TYPE] = PRIO_TYPE,
112112
[DO_SHELL_TYPE] = PRIO_TYPE,
113-
[PRIO_PACKAGE] = PRIO_PACKAGE,
113+
[DO_PACKAGE] = PRIO_PACKAGE,
114114
[DO_FUNC] = PRIO_FUNC,
115115
[DO_AGG] = PRIO_AGG,
116116
[DO_OPERATOR] = PRIO_OPERATOR,

0 commit comments

Comments
 (0)