Re: Passing parameters - Mailing list pgsql-admin

From John DeSoi
Subject Re: Passing parameters
Date
Msg-id 71A20608-90F0-4CB1-8910-9A08CBDCF421@pgedit.com
Whole thread Raw
In response to Passing parameters  ("Ferrell, Denise D CTR NSWCDD, H11" <denise.ferrell.ctr@navy.mil>)
List pgsql-admin
> On Mar 22, 2016, at 9:44 AM, Ferrell, Denise D CTR NSWCDD, H11 <denise.ferrell.ctr@navy.mil> wrote:
>
> I've got a script that I'm running from the Linux command prompt that I need to pass 2 parameter's into the psql
scriptwithout using the VI Editor.  Is there an easy way to accomplish this? 
>
> psql <database> -f <scriptname> -l <log_file>

See the psql command line variable options (-v, --set, --variable).

http://www.postgresql.org/docs/9.5/static/app-psql.html#APP-PSQL-VARIABLES

John DeSoi, Ph.D.



pgsql-admin by date:

Previous
From: Scott Whitney
Date:
Subject: Re: Passing parameters
Next
From:
Date:
Subject: Fw: new important message