Re: reading command from file

From: Thorsten Haude <postgresql(at)thorstenhau(dot)de>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: reading command from file
Date: 2003-01-16 00:47:47
Message-ID: 20030116004747.GQ1665@eumel.yoo.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hi,

* Rosta Farzan <rosta(at)acc(dot)csuhayward(dot)edu> [2003-01-15 22:50]:
>I need help in how to read sql commands from file instead of typing in
>postgres (psql) command line.

Just write you commands in a file and pipe it in:
psql <yourFile.pgsql

Thorsten
--
He that would make his own liberty secure, must guard even
his enemy from oppression; for if he violates this duty,
he establishes a precedent which will reach to himself.
- Thomas Paine

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Jeffrey Melloy 2003-01-16 00:58:26 Re: reading command from file
Previous Message Tom Lane 2003-01-16 00:40:22 Re: [GENERAL] gmake check error on HPUX