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

Lines changed: 2 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy