Re: Query from shell

From: kevin(dot)kempter(at)dataintellect(dot)com
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Query from shell
Date: 2006-04-06 21:43:16
Message-ID: 200604061543.16330.kevin.kempter@dataintellect.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Thursday 06 April 2006 15:37, Owen Jacobson wrote:
> Judith wrote:
> > Hi every body, somebody can show me hot to execute a
> > query from a shell
>
> echo QUERY HERE | psql databasename
>
> Or, if you want to run several queries, run psql and run your queries
> there.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster

I think you can also run:
psql -f filename.sql database_name

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Chris 2006-04-06 22:24:32 Re: pgcrypto-crypt
Previous Message Terry Lee Tucker 2006-04-06 21:40:47 Re: Query from shell