From c7f23494c1103f87bcf1ef7cbfcd626e73edb337 Mon Sep 17 00:00:00 2001
From: Robert Haas
Date: Wed, 6 Jul 2011 11:45:13 -0400
Subject: 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.
---
doc/src/sgml/ref/psql-ref.sgml | 15 +++++++++++++++
1 file changed, 15 insertions(+)
(limited to 'doc/src')
diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml
index 132a7b354b6..6385c78d1d6 100644
--- a/doc/src/sgml/ref/psql-ref.sgml
+++ b/doc/src/sgml/ref/psql-ref.sgml
@@ -1625,6 +1625,21 @@ Tue Oct 26 21:40:57 CEST 1999
+
+ \ir filename
+
+
+ The \ir> command is similar to \i>, but resolves
+ relative pathnames differently. When executing in interactive mode,
+ the two commands behave identically. However, when invoked from a
+ script, \ir interprets pathnames relative to the
+ directory in which the script is located, rather than the current
+ working directory.
+
+
+
+
+
\l (or \list)
\l+ (or \list+)
--
cgit v1.2.3