From: | Guy Fraser <guy(at)incentre(dot)net> |
---|---|
To: | |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Re: Run scripts |
Date: | 2001-08-29 19:23:33 |
Message-ID: | 3B8D4135.751CCB6A@incentre.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Lee Harr wrote:
>
> On 24 Aug 2001 05:43:37 -0700, Christoph <christoph(dot)(dot)lange(at)web(dot)de> wrote:
> > Working with oracle I used the command
> > @/home/lange/textfile.sql
> > to run scripts. Does anyone happen to know how this works with postgres?
> >
>
> In psql, you could use:
>
> \i /home/lange/textfile.sql
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://www.postgresql.org/search.mpl
From the command line, you can do this :
psql -f /home/lange/textfile.sql database
--
There is a fine line between genius and lunacy, fear not, walk the
line with pride. Not all things will end up as you wanted, but you
will certainly discover things the meek and timid will miss out on.
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2001-08-29 19:32:59 | Re: RFC: PostgreSQL and MySQL comparison. |
Previous Message | Guy Fraser | 2001-08-29 19:06:18 | Re: PostgreSQL Log Analyzer 1.0 is out |