Commit a671d940 authored by Peter Eisentraut's avatar Peter Eisentraut

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.
parent 66843265
......@@ -11766,7 +11766,8 @@ dumpUserMappings(Archive *fout,
"FROM pg_options_to_table(umoptions)"
"), ', ') AS umoptions "
"FROM pg_user_mappings "
"WHERE srvid = '%u'",
"WHERE srvid = '%u' "
"ORDER BY usename",
catalogId.oid);
res = PQexec(g_conn, query->data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment