Re: reading command from file - Mailing list pgsql-novice

From Thorsten Haude
Subject Re: reading command from file
Date
Msg-id 20030116004747.GQ1665@eumel.yoo.local
Whole thread Raw
In response to reading command from file  ("Rosta Farzan" <rosta@acc.csuhayward.edu>)
List pgsql-novice
Hi,

* Rosta Farzan <rosta@acc.csuhayward.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

pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: Insert from CSV (comma separated values) file
Next
From: "Thilo Hille"
Date:
Subject: VACUUM ANALYSE...