Re: [BUGS] BUG #14658: psql set autocommit in command line

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [BUGS] BUG #14658: psql set autocommit in command line
Дата
Msg-id 16058.1495114850@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [BUGS] BUG #14658: psql set autocommit in command line  (lindner@visionet.de)
Список pgsql-bugs
lindner@visionet.de writes:
> I expected that the command line --set overrides the global setting in
> psqlrc file.
> Am I wrong?

Yes.  The command line switches are processed first, then the rc file.
Since the rc file might contain arbitrary commands, it really can't
be processed until psql is fully "open for business", that is has
completed all setup tasks.

> And how can I set AUTOCOMMIT to ON per command line if I was wrong?

A brute-force way is --no-psqlrc.
        regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Sveinn Sveinsson
Дата:
Сообщение: Re: [BUGS] BUG #14657: Server process segmentation fault in v10, May10th dev snapshot
Следующее
От: Stefan Lindner
Дата:
Сообщение: Re: [BUGS] BUG #14658: psql set autocommit in command line