mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Have pg_upgrade create its output files in the current directory, rather
than in a subdirectory of the $HOME directory, or $TMP in Windows.
This commit is contained in:
@ -381,7 +381,7 @@ create_script_for_old_cluster_deletion(migratorContext *ctx,
|
||||
prep_status(ctx, "Creating script to delete old cluster");
|
||||
|
||||
snprintf(*deletion_script_file_name, MAXPGPATH, "%s/delete_old_cluster.%s",
|
||||
ctx->output_dir, EXEC_EXT);
|
||||
ctx->cwd, EXEC_EXT);
|
||||
|
||||
if ((script = fopen(*deletion_script_file_name, "w")) == NULL)
|
||||
pg_log(ctx, PG_FATAL, "Could not create necessary file: %s\n",
|
||||
|
Reference in New Issue
Block a user