Passing parameters

From: "Ferrell, Denise D CTR NSWCDD, H11" <denise(dot)ferrell(dot)ctr(at)navy(dot)mil>
To: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Passing parameters
Date: 2016-03-22 14:44:27
Message-ID: 2BC18916DE4BF141AC1EFC55CE2CAE7D1BBB644F@NAEANRFKXM01V.nadsusea.nads.navy.mil
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi All,

Using PostgreSQL v9.3 on Linux Red Hat...

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 script without using the VI Editor. Is there an easy way to accomplish this?

psql <database> -f <scriptname> -l <log_file>

Thank you in advance.
Denise

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Stephen Frost 2016-03-22 14:58:34 Re: Passing parameters
Previous Message Nicolas Aubert 2016-03-22 06:35:03 Re: vacuum analyse waiting