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.
This commit is contained in:
parent
66843265ee
commit
a671d9409b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue