Skip site navigation (1) Skip section navigation (2)

Re: Multiple semicolon separated statements and autocommit

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Rene Pijlman <rene(at)lab(dot)applinet(dot)nl>
Cc: <pgsql-hackers(at)postgresql(dot)org>, <barry(at)xythos(dot)com>
Subject: Re: Multiple semicolon separated statements and autocommit
Date: 2001-08-30 17:56:53
Message-ID: Pine.LNX.4.30.0108301955320.679-100000@peter.localdomain (view raw or flat)
Thread:
Lists: 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(at)gmx(dot)net   http://funkturm.homeip.net/~peter


In response to

Responses

pgsql-hackers by date

Next:From: Rene PijlmanDate: 2001-08-30 19:07:21
Subject: Re: Multiple semicolon separated statements and autocommit
Previous:From: Marc G. FournierDate: 2001-08-30 17:17:52
Subject: test 2 ...

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group