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:
Peter Eisentraut 2011-12-29 21:16:15 +02:00
parent 66843265ee
commit a671d9409b
1 changed files with 2 additions and 1 deletions

View File

@ -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);