Re: Database connectivity using a unix shell

From: Scott Marlowe <smarlowe(at)g2switchworks(dot)com>
To: Jasbinder Bali <jsbali(at)gmail(dot)com>
Cc: pgsql general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Database connectivity using a unix shell
Date: 2006-06-29 16:40:49
Message-ID: 1151599249.13129.18.camel@state.g2switchworks.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 2006-06-29 at 11:29, Jasbinder Bali wrote:
> isn't my normal bash script different from psql.
> In a bash script how wud u specify the db parameters

Look at how I'm doing it here:

> > > query="select * from sometable";
> > > a=`echo $query|psql -tq dbname`;

Note that I'm calling psql from within a bash script. So, the connection
params are the same as for psql, cause that's what I'm using.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Broersma Jr 2006-06-29 16:47:15 Re: Database connectivity using a unix shell
Previous Message Thomas Hallgren 2006-06-29 16:40:13 Re: [GENERAL] UUID's as primary keys