Re: psql in bash scrpts, is possible ?

From: Alan Hodgson <ahodgson(at)simkin(dot)ca>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: psql in bash scrpts, is possible ?
Date: 2010-06-02 20:57:44
Message-ID: 201006021357.45063@hal.medialogik.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Monday 31 May 2010, Mariateresa L <mariateresa(dot)ll(at)bresciaonline(dot)it>
wrote:
> Am I uber-newbie or is this a known limitation of psql ? And, in this
> case, there is something to overcome this limit and afford my non-techie
> user to launch a simple command to print her data or to bulk update
> tables ?
>

psql options < file.sql
echo "sql command;" | psql options

--
"No animals were harmed in the recording of this episode. We tried but that
damn monkey was just too fast."

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message machielr 2010-06-03 10:27:02 slony config error
Previous Message u235sentinel 2010-06-02 20:20:40 Re: Best starter book