From: Jerry Sievers <gsievers19@comcast.net>
To: Michael Paquier <michael@paquier.xyz>
Cc: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: Ravi Krishna <srkrishna1@aol.com>
Cc: adrian.klaver@aklaver.com
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Oracle vs PG
Date: Wed, 24 Oct 2018 04:40:59 -0500
Message-ID: <87d0rz65sk.fsf@jsievers.enova.com> (raw)
In-Reply-To: <20181024054412.GM1658@paquier.xyz>
References: <F2FF46F6-1B5D-4B8C-955D-FCD40CDF4E38@aol.com>
<52fdf2eb-1fdc-5233-aa5f-75b33a88e8c1@aklaver.com>
<6DD461F9-7FF5-4A54-AB04-9507648D76CE@aol.com>
<60e0bcc4-342c-ce57-c319-125eda75b13b@aklaver.com>
<1519969091.2232047.1540337737856@mail.yahoo.com>
<b02f6c98fe38d93ade32eaa8fa5c681355a26e8a.camel@cybertec.at>
<20181024054412.GM1658@paquier.xyz>
Michael Paquier <michael@paquier.xyz> writes:
> On Wed, Oct 24, 2018 at 07:31:57AM +0200, Laurenz Albe wrote:
>
>> I have seen people use savepoints in PostgreSQL to emulate Oracle's
>> "statement rollback" behavior: If a statement fails, only the statement
>> is undone, but the transaction continues.
>>
>> If you insert a savepoint before *every* statement in a transaction,
>> you can get a similar behavior in PostgreSQL, but the performance will
>> suck.
>
> The Postgres ODBC driver actually does that, and I have seen
> applications actually ready to pay the cost of extra round trips to the
> server to be able to get this property, even if that costs performance.
> You can issue a query through the driver and rollback at will this way
> to the previous state of the transaction.
Yep and it's fun watching the txid counter go up so fast too!
> --
> Michael
>
--
Jerry Sievers
Postgres DBA/Development Consulting
e: postgres.consulting@comcast.net
p: 312.241.7800
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: gsievers19@comcast.net, michael@paquier.xyz, laurenz.albe@cybertec.at, srkrishna1@aol.com, adrian.klaver@aklaver.com
Subject: Re: Oracle vs PG
In-Reply-To: <87d0rz65sk.fsf@jsievers.enova.com>
References: <F2FF46F6-1B5D-4B8C-955D-FCD40CDF4E38@aol.com> <52fdf2eb-1fdc-5233-aa5f-75b33a88e8c1@aklaver.com> <6DD461F9-7FF5-4A54-AB04-9507648D76CE@aol.com> <60e0bcc4-342c-ce57-c319-125eda75b13b@aklaver.com> <1519969091.2232047.1540337737856@mail.yahoo.com> <b02f6c98fe38d93ade32eaa8fa5c681355a26e8a.camel@cybertec.at> <20181024054412.GM1658@paquier.xyz> <87d0rz65sk.fsf@jsievers.enova.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