Commit 1c59e376 authored by Bruce Momjian's avatar Bruce Momjian

Revert:

    In pg_upgrade, remove pg_restore's --single-transaction option,
    as it throws errors in certain cases.
parent 20977235
...@@ -309,12 +309,11 @@ create_new_objects(void) ...@@ -309,12 +309,11 @@ create_new_objects(void)
/* /*
* Using pg_restore --single-transaction is faster than other * Using pg_restore --single-transaction is faster than other
* methods, like --jobs. However, --single-transaction throws * methods, like --jobs. pg_dump only produces its output at the
* an error. pg_dump only produces its output at the
* end, so there is little parallelism using the pipe. * end, so there is little parallelism using the pipe.
*/ */
exec_prog(RESTORE_LOG_FILE, NULL, true, exec_prog(RESTORE_LOG_FILE, NULL, true,
"\"%s/pg_restore\" %s --exit-on-error --verbose --dbname \"%s\" \"%s\"", "\"%s/pg_restore\" %s --exit-on-error --single-transaction --verbose --dbname \"%s\" \"%s\"",
new_cluster.bindir, cluster_conn_opts(&new_cluster), new_cluster.bindir, cluster_conn_opts(&new_cluster),
old_db->db_name, file_name); old_db->db_name, file_name);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment