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  (Rene Pijlman <rene@lab.applinet.nl>)
Re: Multiple semicolon separated statements and autocommit  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Список pgsql-hackers
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
Дата:
Сообщение: Re: Multiple semicolon separated statements and autocommit