diff options
Diffstat (limited to 'contrib/pg_upgrade/pg_upgrade.h')
-rw-r--r-- | contrib/pg_upgrade/pg_upgrade.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/contrib/pg_upgrade/pg_upgrade.h b/contrib/pg_upgrade/pg_upgrade.h index affee7a9d93..fa4c6c0a478 100644 --- a/contrib/pg_upgrade/pg_upgrade.h +++ b/contrib/pg_upgrade/pg_upgrade.h @@ -316,10 +316,11 @@ void split_old_dump(void); /* exec.c */ -int -exec_prog(bool throw_error, bool is_priv, const char *log_file, - const char *opt_log_file, const char *cmd,...) -__attribute__((format(PG_PRINTF_ATTRIBUTE, 5, 6))); +#define EXEC_PSQL_ARGS "--echo-queries --set ON_ERROR_STOP=on --no-psqlrc --dbname=template1" +bool +exec_prog(const char *log_file, const char *opt_log_file, + bool throw_error, const char *fmt,...) +__attribute__((format(PG_PRINTF_ATTRIBUTE, 4, 5))); void verify_directories(void); bool is_server_running(const char *datadir); |