Re: batch file

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Hugo Coolens <hugo(dot)coolens(at)skynet(dot)be>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: batch file
Date: 2002-02-21 22:33:21
Message-ID: 200202212233.g1LMXLp03102@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hugo Coolens wrote:
> 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

Any.

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

psql -f filename.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

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

Browse pgsql-general by date

  From Date Subject
Next Message Tim Barnard 2002-02-21 22:38:20 deleting an identical record
Previous Message Jason Earl 2002-02-21 22:30:44 Re: Protection of intellectual property (Schema & SQL code)