From: | "Tsunakawa, Takayuki" <tsunakawa(dot)takay(at)jp(dot)fujitsu(dot)com> |
---|---|
To: | 'Peter Eisentraut' <peter(dot)eisentraut(at)2ndquadrant(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Statement-level rollback |
Date: | 2017-03-03 07:15:45 |
Message-ID: | 0A3221C70F24FB45833433255569204D1F6AAF8A@G01JPEXMBYT05 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-jdbc |
From: pgsql-hackers-owner(at)postgresql(dot)org
> [mailto:pgsql-hackers-owner(at)postgresql(dot)org] On Behalf Of Peter Eisentraut
> On 2/28/17 02:39, Tsunakawa, Takayuki wrote:
> > I'd like to propose statement-level rollback feature. To repeat myself,
> this is requested for users to migrate from other DBMSs to PostgreSQL. They
> expect that a failure of one SQL statement should not abort the entire
> transaction and their apps (client programs and stored procedures) can
> continue the transaction with a different SQL statement.
>
> Can you provide some references on how other systems provide this feature?
Oracle doesn't.
SQL Server provides like this:
SET XACT_ABORT
https://msdn.microsoft.com/en-us/library/ms188792.aspx
MySQL doesn't. BTW, MySQL enables changing autocommit mode with SET statement:
16.5.2.2 autocommit, Commit, and Rollback
https://dev.mysql.com/doc/refman/8.0/en/innodb-autocommit-commit-rollback.html
And above all, I've found EnterpriseDB supports statement-level rollback with GUC! So PostgreSQL should be able to do.
----------------------------------------
edb_stmt_level_tx is set to TRUE, then an exception will not automatically roll back prior uncommitted database updates. If edb_stmt_level_tx is set to FALSE, then an exception will roll back uncommitted database updates.
Note: Use edb_stmt_level_tx set to TRUE only when absolutely necessary, as this may cause a negative performance impact.
----------------------------------------
Regards
Takayuki Tsunakawa
From | Date | Subject | |
---|---|---|---|
Next Message | Tsunakawa, Takayuki | 2017-03-03 07:43:11 | Re: Statement-level rollback |
Previous Message | Michael Paquier | 2017-03-03 07:12:55 | Re: allow referring to functions without arguments when unique |
From | Date | Subject | |
---|---|---|---|
Next Message | Tsunakawa, Takayuki | 2017-03-03 07:43:11 | Re: Statement-level rollback |
Previous Message | Vladimir Sitnikov | 2017-03-02 19:04:34 | Re: Re: JDBC and the hstore ? operator - no longer working with build 1211 |