Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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(-)

pgsql-committers by date

Next:From: Tom LaneDate: 2011-07-06 18:53:54
Subject: pgsql: Remove assumptions that not-equals operators cannot be in anyop
Previous:From: Robert HaasDate: 2011-07-06 14:13:55
Subject: pgsql: Attempt to standardize formatting of psql queries.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group