" \i filename "

Started by simover 27 years ago3 messagesgeneral
Jump to latest
#1sim
sim@infomatch.com

In psql, does the " \i filename " allow you to choose a file not
in the current directory.? It seems that \i only allows you to
specify a filename which is in your current directory; the one you
are in before you start psql.

Thanks.

#2Eric Marsden
emarsden@mail.dotcom.fr
In reply to: sim (#1)
Re: [GENERAL] " \i filename "

"s" == sim <sim@infomatch.com> writes:

s> In psql, does the " \i filename " allow you to choose a file not
s> in the current directory.? It seems that \i only allows you to
s> specify a filename which is in your current directory; the one you
s> are in before you start psql.

Just say `\i /absolute/path/to/file.sql', or use a relative pathname.

--
Eric Marsden
emarsden @ mail.dotcom.fr
It's elephants all the way down

#3sim
sim@matrix.infomatch.com
In reply to: Eric Marsden (#2)
Re: [GENERAL] " \i filename "

To: sim@infomatch.com
Cc: pgsql-general@postgreSQL.org
Subject: Re: [GENERAL] " \i filename "
Reply-to: emarsden@mail.dotcom.fr
From: Eric Marsden <emarsden@mail.dotcom.fr>
Date: 11 Sep 1998 11:52:11 +0200

"s" == sim <sim@infomatch.com> writes:

s> In psql, does the " \i filename " allow you to choose a file not
s> in the current directory.? It seems that \i only allows you to
s> specify a filename which is in your current directory; the one you
s> are in before you start psql.

Just say `\i /absolute/path/to/file.sql', or use a relative pathname.

Thanks a lot. But I still have problems using absolute path names or
even relative path names. I have set up the $PATH also, but it did
not help.

Thanks.