pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Stuart McGraw <smcg4191@mtneva.com>
Cc: pgsql-general@postgresql.org
Subject: Re: existence of a savepoint?
Date: Tue, 29 May 2018 19:01:06 -0400
Message-ID: <20180529230106.o46llmha7nsfqoqn@alvherre.pgsql> (raw)
In-Reply-To: <857d29bf-515d-e624-9e0a-135e9e28e91b@mtneva.com>

On 2018-May-29, Stuart McGraw wrote:

> Alternatively if there were a setting to tell Postgresql to
> follow the SQL standard behavior of overwriting rather stacking
> savepoints, that too would also solve my current problem I think.
> Perhaps it is just my limited experience but the former behavior
> has always seemed more useful in practice than the latter.

I think if what we're doing breaks the semantics of the SQL spec, we're
definitely open to changing our behavior.  But that wouldn't solve your
problem today.  What I think could solve your problem today is a
C-language extension that uses xact.c callbacks in order to expose a
list that you can query from user space.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (12+ messages)  latest in thread

Message-ID: <20180529230106.o46llmha7nsfqoqn@alvherre.pgsql>
Permalink:  ../20180529230106.o46llmha7nsfqoqn@alvherre.pgsql/
Also on:    postgresql.org/message-id/20180529230106.o46llmha7nsfqoqn@alvherre.pgsql

 · 

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: alvherre@2ndquadrant.com, smcg4191@mtneva.com
  Subject: Re: existence of a savepoint?
  In-Reply-To: <20180529230106.o46llmha7nsfqoqn@alvherre.pgsql>
  References: <857d29bf-515d-e624-9e0a-135e9e28e91b@mtneva.com> <20180529230106.o46llmha7nsfqoqn@alvherre.pgsql>

* 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