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

Commit a671d94

Browse files
committed
pg_dump: Dump user mappings ordered by user name
This is to get a deterministic dump order independent of the order in which the user mappings were created.
1 parent 6684326 commit a671d94

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/pg_dump/pg_dump.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -11766,7 +11766,8 @@ dumpUserMappings(Archive *fout,
1176611766
"FROM pg_options_to_table(umoptions)"
1176711767
"), ', ') AS umoptions "
1176811768
"FROM pg_user_mappings "
11769-
"WHERE srvid = '%u'",
11769+
"WHERE srvid = '%u' "
11770+
"ORDER BY usename",
1177011771
catalogId.oid);
1177111772

1177211773
res = PQexec(g_conn, query->data);

0 commit comments

Comments
 (0)