Re: psql and autocommit

Поиск
Список
Период
Сортировка
От Stephen Kennedy
Тема Re: psql and autocommit
Дата
Msg-id 412AF993.5090201@tissat.es
обсуждение исходный текст
Ответ на Re: psql and autocommit  (Radu-Adrian Popescu <radu.popescu@aldratech.com>)
Ответы Re: psql and autocommit  (Tsirkin Evgeny <tsurkin@mail.jct.ac.il>)
Список pgsql-admin
Just a note to clarify sqlplus

It does start in noautocommit as you say.
However,  it issues a commit when you exit (with quit, Ctrl-D or whatever)
which is (in my opinion) incorrect, and very much worth taking into account
when writing scripts for Oracle.
I think it should automatically issue a rollback on exit.

regards,

Stephen.

Radu-Adrian Popescu wrote:

> Tsirkin Evgeny wrote:
> [snip]
>
>> commit to my shell scripts.I beleave that automatically
>> commiting the psql -c queries is very logical thing.
>
>
> I'm sure there are people who disagree with that statement. For
> instance Oracle's sqlplus starts in noautocommit by default. And I've
> found that to be a good thing actually.
> For what it's worth I also think default client policy may as well be
> left unchanged, or there will be a lot of baffled people.
>
> Regards,



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

Предыдущее
От: "Mario Thomas"
Дата:
Сообщение: PostgreSQL Migration of databases 7.2 to 7.4
Следующее
От: Tsirkin Evgeny
Дата:
Сообщение: Re: psql and autocommit