@@ -140,7 +140,7 @@ main(int argc, char **argv)
140
140
* because there is no need to have the schema load use new oids.
141
141
*/
142
142
prep_status ("Setting next OID for new cluster" );
143
- exec_prog (true, true, UTILITY_LOG_FILE ,
143
+ exec_prog (true, true, UTILITY_LOG_FILE , NULL ,
144
144
SYSTEMQUOTE "\"%s/pg_resetxlog\" -o %u \"%s\" >> \"%s\" 2>&1"
145
145
SYSTEMQUOTE ,
146
146
new_cluster .bindir , old_cluster .controldata .chkpnt_nxtoid ,
@@ -211,7 +211,7 @@ prepare_new_cluster(void)
211
211
* --analyze so autovacuum doesn't update statistics later
212
212
*/
213
213
prep_status ("Analyzing all rows in the new cluster" );
214
- exec_prog (true, true, UTILITY_LOG_FILE ,
214
+ exec_prog (true, true, UTILITY_LOG_FILE , NULL ,
215
215
SYSTEMQUOTE "\"%s/vacuumdb\" --port %d --username \"%s\" "
216
216
"--all --analyze %s >> \"%s\" 2>&1" SYSTEMQUOTE ,
217
217
new_cluster .bindir , new_cluster .port , os_info .user ,
@@ -225,7 +225,7 @@ prepare_new_cluster(void)
225
225
* later.
226
226
*/
227
227
prep_status ("Freezing all rows on the new cluster" );
228
- exec_prog (true, true, UTILITY_LOG_FILE ,
228
+ exec_prog (true, true, UTILITY_LOG_FILE , NULL ,
229
229
SYSTEMQUOTE "\"%s/vacuumdb\" --port %d --username \"%s\" "
230
230
"--all --freeze %s >> \"%s\" 2>&1" SYSTEMQUOTE ,
231
231
new_cluster .bindir , new_cluster .port , os_info .user ,
@@ -263,7 +263,7 @@ prepare_new_databases(void)
263
263
* support functions in template1 but pg_dumpall creates database using
264
264
* the template0 template.
265
265
*/
266
- exec_prog (true, true, RESTORE_LOG_FILE ,
266
+ exec_prog (true, true, RESTORE_LOG_FILE , NULL ,
267
267
SYSTEMQUOTE "\"%s/psql\" --echo-queries "
268
268
"--set ON_ERROR_STOP=on "
269
269
/* --no-psqlrc prevents AUTOCOMMIT=off */
@@ -296,7 +296,7 @@ create_new_objects(void)
296
296
check_ok ();
297
297
298
298
prep_status ("Restoring database schema to new cluster" );
299
- exec_prog (true, true, RESTORE_LOG_FILE ,
299
+ exec_prog (true, true, RESTORE_LOG_FILE , NULL ,
300
300
SYSTEMQUOTE "\"%s/psql\" --echo-queries "
301
301
"--set ON_ERROR_STOP=on "
302
302
"--no-psqlrc --port %d --username \"%s\" "
@@ -331,7 +331,7 @@ copy_subdir_files(char *subdir)
331
331
332
332
prep_status ("Copying old %s to new server" , subdir );
333
333
334
- exec_prog (true, false, UTILITY_LOG_FILE ,
334
+ exec_prog (true, false, UTILITY_LOG_FILE , NULL ,
335
335
#ifndef WIN32
336
336
SYSTEMQUOTE "%s \"%s\" \"%s\" >> \"%s\" 2>&1" SYSTEMQUOTE ,
337
337
"cp -Rf" ,
@@ -353,7 +353,7 @@ copy_clog_xlog_xid(void)
353
353
354
354
/* set the next transaction id of the new cluster */
355
355
prep_status ("Setting next transaction ID for new cluster" );
356
- exec_prog (true, true, UTILITY_LOG_FILE ,
356
+ exec_prog (true, true, UTILITY_LOG_FILE , NULL ,
357
357
SYSTEMQUOTE
358
358
"\"%s/pg_resetxlog\" -f -x %u \"%s\" >> \"%s\" 2>&1"
359
359
SYSTEMQUOTE , new_cluster .bindir ,
@@ -363,7 +363,7 @@ copy_clog_xlog_xid(void)
363
363
364
364
/* now reset the wal archives in the new cluster */
365
365
prep_status ("Resetting WAL archives" );
366
- exec_prog (true, true, UTILITY_LOG_FILE ,
366
+ exec_prog (true, true, UTILITY_LOG_FILE , NULL ,
367
367
SYSTEMQUOTE
368
368
"\"%s/pg_resetxlog\" -l %s \"%s\" >> \"%s\" 2>&1"
369
369
SYSTEMQUOTE , new_cluster .bindir ,
0 commit comments