Re: Using Batch Files to Create DB Structure - Mailing list pgsql-novice

From John DeSoi
Subject Re: Using Batch Files to Create DB Structure
Date
Msg-id B1820BF6-F00C-432F-A3CA-1D51AA086C55@pgedit.com
Whole thread Raw
In response to Using Batch Files to Create DB Structure  (Don Parris <gnumathetes@gmail.com>)
List pgsql-novice
On Jul 14, 2005, at 1:55 AM, Don Parris wrote:

> Is this possible with PGSQL?  Can I do this, for instance:
> psql -W mydb < /file/path/batchfile.sql
>
> and get all my tables created?
>
> Or is this why there are a dozen languages for server programming?  If
> redirecting the input from a batchfile is possible, please point me to
> the right documentation..  If not, I'll go back to the languages
> section of the manual.  Many thanks in advance.

Yes, PostgreSQL has command line tool like mysql. The manual location
is:

http://www.postgresql.org/docs/8.0/interactive/app-psql.html


John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL


pgsql-novice by date:

Previous
From: Tino Wildenhain
Date:
Subject: Re: [GENERAL] INSERT INTO from a SELECT query
Next
From: Andreas Kretschmer
Date:
Subject: Re: [despammed] CSV Import?