Re: how to load a sql-file????

From: Ron Peterson <rpeterso(at)mtholyoke(dot)edu>
To:
Cc: markus jais <mjais(at)web(dot)de>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: how to load a sql-file????
Date: 2001-03-28 19:30:10
Message-ID: 3AC23BC2.8641A7A3@mtholyoke.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jason Earl wrote:
>
> psql <database_name> -U postgres -f loadfile.sql
>
> Should do what you want. Or if you are already in
> psql take a look at the \i command.

Especially if you're just starting, you might like to start psql as
'psql -s'. This puts you in single step mode, so when you use \i, the
SQL commands you are loading will be executed one at a time.

--
Ron Peterson
Network & Systems Manager
Mount Holyoke College
GPG and other info at http://www.mtholyoke.edu/~rpeterso

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2001-03-28 20:03:17 Re: Tables grow in size when issuing UPDATEs! Why??
Previous Message Daniel ?erud 2001-03-28 19:23:13 Tables grow in size when issuing UPDATEs! Why??