Re: batch file

From: missive(at)frontiernet(dot)net (Lee Harr)
To: pgsql-general(at)postgresql(dot)org
Subject: Re: batch file
Date: 2002-02-21 03:46:08
Message-ID: slrna78r85.75.missive@whave.frontiernet.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


> In the postgresql tutorial it is explained how to enter commands one by
> one, I was wondering whether it is possible to first put a series of
> commands in an ascii file and then read in that file with psql. Here are
> my questions:
> 1. What should be the default extension of such a file

I do not know of a standard. How about .sql ?

> 2. Which command in psql should I use to read in suc a file

\i commands.sql

Also, take a look at \? which will show you other goodies.

In response to

  • batch file at 2002-02-21 02:25:28 from Hugo Coolens

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Lee Harr 2002-02-21 03:49:13 Re: Date problem
Previous Message Lee Harr 2002-02-21 03:44:51 Re: deleting an identical record