Re: Multiple semicolon separated statements and autocommit

Поиск
Список
Период
Сортировка
Искать
От
Peter Eisentraut
Тема
Re: Multiple semicolon separated statements and autocommit
Дата
Msg-id
Pine.LNX.4.30.0108301955320.679-100000@peter.localdomain
Ответ на
Список
Дерево обсуждения
Multiple semicolon separated statements and autocommit Rene Pijlman <rene@lab.applinet.nl>
Re: Multiple semicolon separated statements and autocommit Peter Eisentraut <peter_e@gmx.net>
Re: Multiple semicolon separated statements and autocommit Rene Pijlman <rene@lab.applinet.nl>
Re: Multiple semicolon separated statements and autocommit "Christopher Kings-Lynne" <chriskl@familyhealth.com.au>
Re: Multiple semicolon separated statements and autocommit Peter Eisentraut <peter_e@gmx.net>
Rene Pijlman writes:

> If autocommit is _enabled_ and S1;S2;S3 is send to the database,
> what exactly is the behaviour of the backend? For example, what
> happens if S1 succeeds, S2 fails and S3 would succeed?

All three commands are executed in a single transaction.  So if S2 fails,
S3 would not be executed.

-- 
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter


В списке pgsql-hackers по дате отправления
От: Marc G. Fournier
Дата:
Сообщение: test 2 ...
От: Rene Pijlman
Дата:
FAQ