Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aHFH4-0007lh-Ok for pgsql-bugs@arkaria.postgresql.org; Thu, 07 Jan 2016 18:27:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aHFH4-0006Rw-72 for pgsql-bugs@arkaria.postgresql.org; Thu, 07 Jan 2016 18:27:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aGa0T-0003Yn-NY for pgsql-bugs@postgresql.org; Tue, 05 Jan 2016 22:23:09 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aGa0P-0005K6-5K for pgsql-bugs@postgresql.org; Tue, 05 Jan 2016 22:23:08 +0000 MIME-Version: 1.0 Subject: BUG #13849: Need a parameter added similar to "edb_stmt_level_tx" To: pgsql-bugs@postgresql.org From: skinneda@us.ibm.com Date: Tue, 05 Jan 2016 22:22:15 +0000 Message-ID: <20160105222215.989.32575@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.2 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 13849 Logged by: David Skinner Email address: skinneda@us.ibm.com 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_Guide-04.htm 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