Re: psql + autocommit

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: psql + autocommit
Дата
Msg-id 200409152008.09660.peter_e@gmx.net
обсуждение исходный текст
Ответ на Re: psql + autocommit  (John Sidney-Woollett <johnsw@wardbrook.com>)
Ответы Re: psql + autocommit
Список pgsql-general
John Sidney-Woollett wrote:
> I'd like to see a global setting that I could change, not one on a
> user by user basis...

Then I suggest that in addition to the per-user configuration file
~/.psqlrc you implement a global configuration file
/etc/postgresql/psqlrc.  That would be the place you could put such a
setting.

> I'd also like a message in the Welcome banner telling me what the
> current AUTOCOMMIT setting is...

Put

\echo 'AUTOCOMMIT is' :AUTOCOMMIT

in your configuration file and you're done.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/


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

Предыдущее
От: Ron St-Pierre
Дата:
Сообщение: Re: disk performance benchmarks
Следующее
От: John Sidney-Woollett
Дата:
Сообщение: Re: psql + autocommit