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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-hackers by date

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