Add \ir command to psql.

Robert Haas <rhaas@postgresql.org>

Commit: c7f23494c1103f87bcf1ef7cbfcd626e73edb337
Author: Robert Haas <rhaas@postgresql.org>
Date: 2011-07-06T15:45:13Z
Releases: 9.2.0
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.

Files

PathChange+/−
doc/src/sgml/ref/psql-ref.sgml modified +15 −0
src/bin/psql/command.c modified +32 −5
src/bin/psql/command.h modified +1 −1
src/bin/psql/help.c modified +2 −1
src/bin/psql/settings.h modified +1 −1
src/bin/psql/startup.c modified +3 −3
src/bin/psql/tab-complete.c modified +2 −1
src/include/port.h modified +1 −0
src/port/path.c modified +11 −0