mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
In pg_upgrade, dump each database separately and use
--single-transaction to restore each database schema. This yields performance improvements for databases with many tables. Also, remove split_old_dump() as it is no longer needed.
This commit is contained in:
@ -72,7 +72,7 @@ output_check_banner(bool *live_check)
|
||||
|
||||
|
||||
void
|
||||
check_old_cluster(bool live_check, char **sequence_script_file_name)
|
||||
check_and_dump_old_cluster(bool live_check, char **sequence_script_file_name)
|
||||
{
|
||||
/* -- OLD -- */
|
||||
|
||||
@ -131,10 +131,7 @@ check_old_cluster(bool live_check, char **sequence_script_file_name)
|
||||
* the old server is running.
|
||||
*/
|
||||
if (!user_opts.check)
|
||||
{
|
||||
generate_old_dump();
|
||||
split_old_dump();
|
||||
}
|
||||
|
||||
if (!live_check)
|
||||
stop_postmaster(false);
|
||||
|
Reference in New Issue
Block a user