Re: AutoCommit mode in PostgreSQL (7.3 beta1 from CVS 05.09.2002)
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: AutoCommit mode in PostgreSQL (7.3 beta1 from CVS 05.09.2002) |
| Дата | |
| Msg-id | 12036.1031591881@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: AutoCommit mode in PostgreSQL (7.3 beta1 from CVS 05.09.2002) (Bruce Momjian <pgman@candle.pha.pa.us>) |
| Ответы |
Re: AutoCommit mode in PostgreSQL (7.3 beta1 from CVS 05.09.2002)
|
| Список | pgsql-general |
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> snpe wrote:
>> This is fine, but if I don't call commit and exit from plsql, PostgreSQL do
>> rollback.Can I change this behavior.
> I assume this is 7.3beta. What does the SQL standard say about exit
> from a sesion without commit? There is currently no way to change that
> behavior.
I don't think there should be. Autocommit on exit is sheer folly: what
if it's an accidental disconnect? (network fails, you type \q when you
meant \w, or whatever.) You might as well have autocommit on as run
an "autocommit off" session that will commit when you did not explicitly
tell it to.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера