pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: extra43@comcast.net
To: pgsql-bugs@postgresql.org
Subject: BUG #13850: Need a parameter added similar to "edb_stmt_level_tx"
Date: Tue, 05 Jan 2016 23:07:59 +0000
Message-ID: <20160105230759.1117.28802@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      13850
Logged by:          David Skinner
Email address:      extra43@comcast.net
PostgreSQL version: 9.5rc1
Operating system:   Windows
Description:        

To add support for PostgreSQL, we need the equivalent of EDB's
edb_stmt_level_tx parameter, which you can see explained here: 
http://www.enterprisedb.com/docs/en/8.4/oracompat/Postgres_Plus_Advanced_Server_Oracle_Compatibility...

We've read all about the new "ON CONFLICT" keyword in 9.5, but coding it
into our complex ECM product would be kludgy and an incomplete fix.  Our use
case (for example) is adding a folder, and preventing a duplicate key error
on the (enforced unique) containment name.  

Rather than rollback and retry the entire txn, we only need to catch the SQL
error and retry the INSERT (which failed on dup. key error).  There are
similar situations in over 50 places in our code that relies on NOT rolling
back the txn on SQL error.  NOT rolling back is the standard behavior on
Oracle, SQL Server, Informix and DB2.  We understand the reasons for PG's
current behavior, but it is not practical in the complex real world,
especially since it should be extremely simple to support as EDB has. 
Thanks!  Also, when is 9.5 GA expected?


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (2+ messages)  latest in thread

Message-ID: <20160105230759.1117.28802@wrigleys.postgresql.org>
Permalink:  ../20160105230759.1117.28802@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20160105230759.1117.28802@wrigleys.postgresql.org

 · 

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-bugs@postgresql.org
  Cc: extra43@comcast.net
  Subject: Re: BUG #13850: Need a parameter added similar to "edb_stmt_level_tx"
  In-Reply-To: <20160105230759.1117.28802@wrigleys.postgresql.org>
  References: <20160105230759.1117.28802@wrigleys.postgresql.org>

* 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