Skip to content

Commit 861ad67

Browse files
committed
pg_upgrade: remove --single-transaction usage
With AtEOXact applied, --single-transaction makes pg_restore slower, and has the potential to require lock table configuration, so remove the argument. Per suggestion from Tom.
1 parent 21c87a0 commit 861ad67

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

contrib/pg_upgrade/pg_upgrade.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -314,12 +314,11 @@ create_new_objects(void)
314314
snprintf(log_file_name, sizeof(log_file_name), DB_DUMP_LOG_FILE_MASK, old_db->db_oid);
315315

316316
/*
317-
* Using pg_restore --single-transaction is faster than other
318-
* methods, like --jobs. pg_dump only produces its output at the
319-
* end, so there is little parallelism using the pipe.
317+
* pg_dump only produces its output at the end, so there is little
318+
* parallelism if using the pipe.
320319
*/
321320
parallel_exec_prog(log_file_name, NULL,
322-
"\"%s/pg_restore\" %s --exit-on-error --single-transaction --verbose --dbname \"%s\" \"%s\"",
321+
"\"%s/pg_restore\" %s --exit-on-error --verbose --dbname \"%s\" \"%s\"",
323322
new_cluster.bindir, cluster_conn_opts(&new_cluster),
324323
old_db->db_name, sql_file_name);
325324
}

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