diff options
author | Robert Haas <rhaas@postgresql.org> | 2011-07-06 11:45:13 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2011-07-06 11:45:13 -0400 |
commit | c7f23494c1103f87bcf1ef7cbfcd626e73edb337 (patch) | |
tree | 7986492776b72dae25a10615076658879440aa03 /src/bin/psql/command.h | |
parent | 5ac6b767893281cab5c974b039400118851d548b (diff) | |
download | postgresql-c7f23494c1103f87bcf1ef7cbfcd626e73edb337.tar.gz postgresql-c7f23494c1103f87bcf1ef7cbfcd626e73edb337.zip |
Add \ir command to psql.
\ir is short for "include relative"; when used from a script, the
supplied pathname will be interpreted relative to the input file,
rather than to the current working directory.
Gurjeet Singh, reviewed by Josh Kupershmidt, with substantial further
cleanup by me.
Diffstat (limited to 'src/bin/psql/command.h')
-rw-r--r-- | src/bin/psql/command.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/psql/command.h b/src/bin/psql/command.h index 852d645cfd0..9d0c31c1030 100644 --- a/src/bin/psql/command.h +++ b/src/bin/psql/command.h @@ -27,7 +27,7 @@ typedef enum _backslashResult extern backslashResult HandleSlashCmds(PsqlScanState scan_state, PQExpBuffer query_buf); -extern int process_file(char *filename, bool single_txn); +extern int process_file(char *filename, bool single_txn, bool use_relative_path); extern bool do_pset(const char *param, const char *value, |