pgsql: Add \ir command to psql.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add \ir command to psql.
Date: 2011-07-06 15:58:20
Message-ID: E1QeUUW-0001vy-CE@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/c7f23494c1103f87bcf1ef7cbfcd626e73edb337

Modified Files
--------------
doc/src/sgml/ref/psql-ref.sgml | 15 +++++++++++++++
src/bin/psql/command.c | 37 ++++++++++++++++++++++++++++++++-----
src/bin/psql/command.h | 2 +-
src/bin/psql/help.c | 3 ++-
src/bin/psql/settings.h | 2 +-
src/bin/psql/startup.c | 6 +++---
src/bin/psql/tab-complete.c | 3 ++-
src/include/port.h | 1 +
src/port/path.c | 11 +++++++++++
9 files changed, 68 insertions(+), 12 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2011-07-06 18:53:54 pgsql: Remove assumptions that not-equals operators cannot be in any op
Previous Message Robert Haas 2011-07-06 14:13:55 pgsql: Attempt to standardize formatting of psql queries.