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

Re: Path for pgsql \i option?

From: Francisco Reyes <lists(at)natserv(dot)com>
To: Jason Tan <jason(at)rebel(dot)rebel(dot)net(dot)au>
Cc: Pgsql Novice <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Path for pgsql \i option?
Date: 2001-09-13 17:27:52
Message-ID: 20010913132406.Q33168-100000@zoraida.natserv.net (view raw or flat)
Thread:
Lists: pgsql-novice
On Tue, 11 Sep 2001, Jason Tan wrote:
> You can specify absolute paths.


That's what I have been using.

> You can also speicify relative paths:

I tried relative paths and didn't seem to work.
In particular I tried something like:
\i inc/myfile.inc

Where "inc" was a subdirectory.
I did not try:
\i ./inc/myfile.inc

will try than when I get back to work.. no electricity on whole area where
I work due to terrorist attack.

> You can also include lots of \i directives in a file you run with \i.
> Eg if have a file called builddb.sq; that contains:

That could be usefull.



In response to

pgsql-novice by date

Next:From: Andre SchnabelDate: 2001-09-13 18:25:24
Subject: Re: Insert using a subselect?
Previous:From: Francisco ReyesDate: 2001-09-13 17:21:31
Subject: Re: Insert using a subselect?

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