Re: Multiple semicolon separated statements and autocommit - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Multiple semicolon separated statements and autocommit
Date
Msg-id Pine.LNX.4.30.0108301955320.679-100000@peter.localdomain
Whole thread Raw
In response to Multiple semicolon separated statements and autocommit  (Rene Pijlman <rene@lab.applinet.nl>)
Responses Re: Multiple semicolon separated statements and autocommit
Re: Multiple semicolon separated statements and autocommit
List 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 by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: test 2 ...
Next
From: Rene Pijlman
Date:
Subject: Re: Multiple semicolon separated statements and autocommit