@@ -140,7 +140,7 @@ main(int argc, char **argv)
140140 * because there is no need to have the schema load use new oids.
141141 */
142142prep_status ("Setting next OID for new cluster" );
143- exec_prog (true, true,UTILITY_LOG_FILE ,
143+ exec_prog (true, true,UTILITY_LOG_FILE ,NULL ,
144144SYSTEMQUOTE "\"%s/pg_resetxlog\" -o %u \"%s\" >> \"%s\" 2>&1"
145145SYSTEMQUOTE ,
146146new_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 */
213213prep_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 ,
215215SYSTEMQUOTE "\"%s/vacuumdb\" --port %d --username \"%s\" "
216216"--all --analyze %s >> \"%s\" 2>&1" SYSTEMQUOTE ,
217217new_cluster .bindir ,new_cluster .port ,os_info .user ,
@@ -225,7 +225,7 @@ prepare_new_cluster(void)
225225 * later.
226226 */
227227prep_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 ,
229229SYSTEMQUOTE "\"%s/vacuumdb\" --port %d --username \"%s\" "
230230"--all --freeze %s >> \"%s\" 2>&1" SYSTEMQUOTE ,
231231new_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 ,
267267SYSTEMQUOTE "\"%s/psql\" --echo-queries "
268268"--set ON_ERROR_STOP=on "
269269/* --no-psqlrc prevents AUTOCOMMIT=off */
@@ -296,7 +296,7 @@ create_new_objects(void)
296296check_ok ();
297297
298298prep_status ("Restoring database schema to new cluster" );
299- exec_prog (true, true,RESTORE_LOG_FILE ,
299+ exec_prog (true, true,RESTORE_LOG_FILE ,NULL ,
300300SYSTEMQUOTE "\"%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
332332prep_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
336336SYSTEMQUOTE "%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 */
355355prep_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 ,
357357SYSTEMQUOTE
358358"\"%s/pg_resetxlog\" -f -x %u \"%s\" >> \"%s\" 2>&1"
359359SYSTEMQUOTE ,new_cluster .bindir ,
@@ -363,7 +363,7 @@ copy_clog_xlog_xid(void)
363363
364364/* now reset the wal archives in the new cluster */
365365prep_status ("Resetting WAL archives" );
366- exec_prog (true, true,UTILITY_LOG_FILE ,
366+ exec_prog (true, true,UTILITY_LOG_FILE ,NULL ,
367367SYSTEMQUOTE
368368"\"%s/pg_resetxlog\" -l %s \"%s\" >> \"%s\" 2>&1"
369369SYSTEMQUOTE ,new_cluster .bindir ,