Re: psql: Is it possible to run a query from a *sql file?

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: nasr(dot)laili(at)tin(dot)it, pgsql-novice(at)postgresql(dot)org
Subject: Re: psql: Is it possible to run a query from a *sql file?
Date: 2005-05-02 13:54:32
Message-ID: 20050502135432.GA9068@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Mon, May 02, 2005 at 02:38:39 +0200,
Ennio-Sr <nasr(dot)laili(at)tin(dot)it> wrote:
> * Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> [010505, 13:24]:
>
> > rather than the other way round. It's hard to envision a script that
> > needs user interaction and won't shortly thereafter need control
> ^^^^^^^^^^^^
> > structures etc.
> ^^^^^^^^^^^^^^^
> Sorry! I forgot to ask it in my previous answer:
> What does that exactly mean?
> Where can I read for a better understanding?
> Regards, Ennio.

Statements that provide for conditional and repeated execution of other
statements. psql dosn't have that, but your shell almost certainly does.

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Bruno Wolff III 2005-05-02 13:59:02 Re: how to make collation work
Previous Message Andreas Kretschmer 2005-05-02 13:38:53 Re: [despammed] Connection problems with "psql -h localhost <dbName> postgres"