mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
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:
@ -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);
|
||||
|
Reference in New Issue
Block a user