pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Robert Zenz <robert.zenz@sibvisions.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: Information on savepoint requirement within transctions
Date: Mon, 29 Jan 2018 11:00:20 -0500
Message-ID: <2870.1517241620@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKFQuwaZYdDU3MGvgESVvzGz81sEy9kvNmHevOEG3J3Bee6zZg@mail.gmail.com>
References: <5A6B3F78.6030908@sibvisions.com>
	<CANu8Fixd_cKLouG_euktWHs12Nc7Ld5VXZ-qu13yuSs7HKnVPw@mail.gmail.com>
	<5A6B4A12.9000002@sibvisions.com>
	<CANu8FixBRh=+aKFDPtWc6o4o_++tOTDQSGDOBTsQ5AnfiiCFCQ@mail.gmail.com>
	<CAKFQuwYY+uMxpgmWm=V=E99GL8x53cY5-oBnnqGb8ZhTmcbznw@mail.gmail.com>
	<5A6EDD41.70005@sibvisions.com>
	<CAKFQuwbTro=vw6UxkGaR6DRdaPxGBOKTsLDJFWqD9Uz-n7gVXA@mail.gmail.com>
	<5A6F28A7.5080800@sibvisions.com>
	<CAF-3MvMA-4hJU1NRLUHqwa1nPe5msFwP92MuNJFgZAyxozk5sA@mail.gmail.com>
	<5A6F3875.80607@sibvisions.com>
	<1644.1517239990@sss.pgh.pa.us>
	<CAKFQuwaZYdDU3MGvgESVvzGz81sEy9kvNmHevOEG3J3Bee6zZg@mail.gmail.com>

"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Mon, Jan 29, 2018 at 8:33 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> What we do have though is client-side support for appropriate behaviors.
>> In psql, see the AUTOCOMMIT and ON_ERROR_ROLLBACK control variables.

> Not quite the same.  I think what people probably want is for psql to
> recognize it is in a transaction and before sending a command to the server
> for processing to precede it by sending "SAVEPOINT random()".  Then, before
> returning the result of the command to the user issue either "RELEASE
> SAVEPOINT" or "ROLLBACK TO SAVEPOINT" depending on whether the command
> succeeded or failed.  Then report the result to the user.

Which part of that isn't implemented by ON_ERROR_ROLLBACK?

			regards, tom lane




view thread (32+ messages)  latest in thread

Message-ID: <2870.1517241620@sss.pgh.pa.us>
Permalink:  ../2870.1517241620@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2870.1517241620@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, david.g.johnston@gmail.com, robert.zenz@sibvisions.com
  Subject: Re: Information on savepoint requirement within transctions
  In-Reply-To: <2870.1517241620@sss.pgh.pa.us>
  References: <5A6B3F78.6030908@sibvisions.com> <CANu8Fixd_cKLouG_euktWHs12Nc7Ld5VXZ-qu13yuSs7HKnVPw@mail.gmail.com> <5A6B4A12.9000002@sibvisions.com> <CANu8FixBRh=+aKFDPtWc6o4o_++tOTDQSGDOBTsQ5AnfiiCFCQ@mail.gmail.com> <CAKFQuwYY+uMxpgmWm=V=E99GL8x53cY5-oBnnqGb8ZhTmcbznw@mail.gmail.com> <5A6EDD41.70005@sibvisions.com> <CAKFQuwbTro=vw6UxkGaR6DRdaPxGBOKTsLDJFWqD9Uz-n7gVXA@mail.gmail.com> <5A6F28A7.5080800@sibvisions.com> <CAF-3MvMA-4hJU1NRLUHqwa1nPe5msFwP92MuNJFgZAyxozk5sA@mail.gmail.com> <5A6F3875.80607@sibvisions.com> <1644.1517239990@sss.pgh.pa.us> <CAKFQuwaZYdDU3MGvgESVvzGz81sEy9kvNmHevOEG3J3Bee6zZg@mail.gmail.com> <2870.1517241620@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox