Re: how to load a sql-file???? - Mailing list pgsql-general

From Ron Peterson
Subject Re: how to load a sql-file????
Date
Msg-id 3AC23BC2.8641A7A3@mtholyoke.edu
Whole thread Raw
In response to Re: how to load a sql-file????  (Jason Earl <jdearl@yahoo.com>)
List 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

pgsql-general by date:

Previous
From: Daniel ?erud
Date:
Subject: Tables grow in size when issuing UPDATEs! Why??
Next
From: "Mihai Gheorghiu"
Date:
Subject: View primary key