Content-Length: 259112 | pFad | http://github.com/postgrespro/postgres_cluster/commit/a671d9409bfeac9ec5a622d74519fd1142a47274

AC pg_dump: Dump user mappings ordered by user name · postgrespro/postgres_cluster@a671d94 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/a671d9409bfeac9ec5a622d74519fd1142a47274

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy