@@ -140,7 +140,7 @@ main(int argc, char **argv)
140140 * because there is no need to have the schema load use new oids.
141141 */
142142 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 ,
144144 SYSTEMQUOTE "\"%s/pg_resetxlog\" -o %u \"%s\" >> \"%s\" 2>&1"
145145 SYSTEMQUOTE ,
146146 new_cluster .bindir , old_cluster .controldata .chkpnt_nxtoid ,
@@ -211,7 +211,7 @@ prepare_new_cluster(void)
211211 * --analyze so autovacuum doesn't update statistics later
212212 */
213213 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 ,
215215 SYSTEMQUOTE "\"%s/vacuumdb\" --port %d --username \"%s\" "
216216 "--all --analyze %s >> \"%s\" 2>&1" SYSTEMQUOTE ,
217217 new_cluster .bindir , new_cluster .port , os_info .user ,
@@ -225,7 +225,7 @@ prepare_new_cluster(void)
225225 * later.
226226 */
227227 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 ,
229229 SYSTEMQUOTE "\"%s/vacuumdb\" --port %d --username \"%s\" "
230230 "--all --freeze %s >> \"%s\" 2>&1" SYSTEMQUOTE ,
231231 new_cluster .bindir , new_cluster .port , os_info .user ,
@@ -263,7 +263,7 @@ prepare_new_databases(void)
263263 * support functions in template1 but pg_dumpall creates database using
264264 * the template0 template.
265265 */
266- exec_prog (true, true, RESTORE_LOG_FILE ,
266+ exec_prog (true, true, RESTORE_LOG_FILE , NULL ,
267267 SYSTEMQUOTE "\"%s/psql\" --echo-queries "
268268 "--set ON_ERROR_STOP=on "
269269 /* --no-psqlrc prevents AUTOCOMMIT=off */
@@ -296,7 +296,7 @@ create_new_objects(void)
296296 check_ok ();
297297
298298 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 ,
300300 SYSTEMQUOTE "\"%s/psql\" --echo-queries "
301301 "--set ON_ERROR_STOP=on "
302302 "--no-psqlrc --port %d --username \"%s\" "
@@ -331,7 +331,7 @@ copy_subdir_files(char *subdir)
331331
332332 prep_status ("Copying old %s to new server" , subdir );
333333
334- exec_prog (true, false, UTILITY_LOG_FILE ,
334+ exec_prog (true, false, UTILITY_LOG_FILE , NULL ,
335335#ifndef WIN32
336336 SYSTEMQUOTE "%s \"%s\" \"%s\" >> \"%s\" 2>&1" SYSTEMQUOTE ,
337337 "cp -Rf" ,
@@ -353,7 +353,7 @@ copy_clog_xlog_xid(void)
353353
354354 /* set the next transaction id of the new cluster */
355355 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 ,
357357 SYSTEMQUOTE
358358 "\"%s/pg_resetxlog\" -f -x %u \"%s\" >> \"%s\" 2>&1"
359359 SYSTEMQUOTE , new_cluster .bindir ,
@@ -363,7 +363,7 @@ copy_clog_xlog_xid(void)
363363
364364 /* now reset the wal archives in the new cluster */
365365 prep_status ("Resetting WAL archives" );
366- exec_prog (true, true, UTILITY_LOG_FILE ,
366+ exec_prog (true, true, UTILITY_LOG_FILE , NULL ,
367367 SYSTEMQUOTE
368368 "\"%s/pg_resetxlog\" -l %s \"%s\" >> \"%s\" 2>&1"
369369 SYSTEMQUOTE , new_cluster .bindir ,
0 commit comments