Re: Passing parameters

Поиск
Список
Период
Сортировка
От John DeSoi
Тема Re: Passing parameters
Дата
Msg-id 71A20608-90F0-4CB1-8910-9A08CBDCF421@pgedit.com
обсуждение исходный текст
Ответ на Passing parameters  ("Ferrell, Denise D CTR NSWCDD, H11" <denise.ferrell.ctr@navy.mil>)
Список 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 по дате отправления:

Предыдущее
От: Scott Whitney
Дата:
Сообщение: Re: Passing parameters
Следующее
От:
Дата:
Сообщение: Fw: new important message