pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Justin Pryzby <pryzby@telsasoft.com>
To: Rui DeSousa <rui@crazybean.net>
Cc: Isaac Morland <isaac.morland@gmail.com>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: Yotsunaga, Naoki <yotsunaga.naoki@jp.fujitsu.com>
Cc: Postgres hackers <pgsql-hackers@postgresql.org>
Subject: Re: automatic restore point
Date: Mon, 25 Jun 2018 23:37:13 -0500
Message-ID: <20180626043713.GG20857@telsasoft.com> (raw)
In-Reply-To: <0FF13FF7-C81F-43D0-B262-4D422E5D857B@crazybean.net>
References: <8E9126CB6CE2CD42962059AB0FBF7B0DBE3167@g01jpexmbkw23>
	<CAKFQuwamx96qu6GAM8OuoM3DNEockiiiE=VOx1LV0_Hag5bOrQ@mail.gmail.com>
	<CAMsGm5cbv6BwqzsUHGVDUvn5yMePhyZBCfPhND88QAWv6MqwOA@mail.gmail.com>
	<0FF13FF7-C81F-43D0-B262-4D422E5D857B@crazybean.net>

On Tue, Jun 26, 2018 at 12:04:59AM -0400, Rui DeSousa wrote:
> Why not use auto commit off in the session or .psqlrc file or begin and then use rollback?  \set AUTOCOMMIT off
> 
> What would be nice is if a syntax error didn’t abort the transaction when auto commit is off — being a bad typist.

I think you'll get that behavior with ON_ERROR_ROLLBACK.

Justin




view thread (30+ messages)  latest in thread

Message-ID: <20180626043713.GG20857@telsasoft.com>
Permalink:  ../20180626043713.GG20857@telsasoft.com/
Also on:    postgresql.org/message-id/20180626043713.GG20857@telsasoft.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: pryzby@telsasoft.com, rui@crazybean.net, isaac.morland@gmail.com, david.g.johnston@gmail.com, yotsunaga.naoki@jp.fujitsu.com
  Subject: Re: automatic restore point
  In-Reply-To: <20180626043713.GG20857@telsasoft.com>

* 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