Skip to content

Commit 1c59e37

Browse files
committed
Revert:
In pg_upgrade, remove pg_restore's --single-transaction option, as it throws errors in certain cases.
1 parent 2097723 commit 1c59e37

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

contrib/pg_upgrade/pg_upgrade.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,12 +309,11 @@ create_new_objects(void)
309309

310310
/*
311311
* Using pg_restore --single-transaction is faster than other
312-
* methods, like --jobs. However, --single-transaction throws
313-
* an error. pg_dump only produces its output at the
312+
* methods, like --jobs. pg_dump only produces its output at the
314313
* end, so there is little parallelism using the pipe.
315314
*/
316315
exec_prog(RESTORE_LOG_FILE, NULL, true,
317-
"\"%s/pg_restore\" %s --exit-on-error --verbose --dbname \"%s\" \"%s\"",
316+
"\"%s/pg_restore\" %s --exit-on-error --single-transaction --verbose --dbname \"%s\" \"%s\"",
318317
new_cluster.bindir, cluster_conn_opts(&new_cluster),
319318
old_db->db_name, file_name);
320319
}

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