Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gFBxv-0006fk-Ev for pgsql-general@arkaria.postgresql.org; Wed, 24 Oct 2018 05:44:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gFBxt-00033r-ID for pgsql-general@arkaria.postgresql.org; Wed, 24 Oct 2018 05:44:21 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gFBxt-00033i-5y for pgsql-general@lists.postgresql.org; Wed, 24 Oct 2018 05:44:21 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gFBxq-0004Rn-Gr for pgsql-general@lists.postgresql.org; Wed, 24 Oct 2018 05:44:19 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id A53AA21D09; Wed, 24 Oct 2018 01:44:17 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 24 Oct 2018 01:44:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=q87b6HfKz0WuSIi/Q8yBGcczJqd YUAORtRAdIv9XP+E=; b=EYiXScalCFfjrUr6WboQP3OjzLw84/0f/bAsFY2hO3F x4ztYkVt0Ks+z+eUtaGAbbz0yDBg8hslJS94+1qxUdne8Jbjbku8RuPW0PEIINS7 mOhDBOpaEOtYpYRGSeyRxGmGqj48Ciaj+DoKe5iS/QuPG9bSbzmv+ZvdwlhR7i3W CqRM6ykAi71pmggkiyEpBKQ9uB5o8WP1iyfmo7KxTM2VF0xfqANc5vKaUyMoQ8hZ sfCqzVnwcpb99DjqeFOvlUkaa6wDo6ZRptukG/Sjw+mycHfFwg8NiKx890+yBa6Y Zc2pelVtqcPjcrpYM+HqSu5DsIzdwXDzndaAN29vxWw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=q87b6H fKz0WuSIi/Q8yBGcczJqdYUAORtRAdIv9XP+E=; b=mDcR5ecsHLQTlohntIL1sl Vm3eo84KOyMNx1VRb4Z0ef+tTnjBkofzmJaS9WeIxynCMmI/PTfZj546mdVLwS8f 3DIE0epXB5Jm2ZLq91SiXO66lL+Iuq9X6u16Geg0B6Locq5syI3TQjGf/aMQDZdg swoVbeXG0EAb+LoyeeR7y04QWJZQqwxhP0F02SXqPcTdEHy+OsW96wlwbeCK6ldZ ColYGKrKCe4TE4VKFwzrwBbJeGWGmVLwrbd7MdTJDKSAvSB7gzaGHrrV45zLm7DU 7KOA+GEzrTNKD5A5KUkb3VvF4/R9d4K372yh/Cv+D7WQgeQW4+dUrMQ1CjnoXctQ == X-ME-Sender: X-ME-Proxy: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id EABC7102F2; Wed, 24 Oct 2018 01:44:14 -0400 (EDT) Date: Wed, 24 Oct 2018 14:44:12 +0900 From: Michael Paquier To: Laurenz Albe Cc: Ravi Krishna , adrian.klaver@aklaver.com, pgsql-general@lists.postgresql.org Subject: Re: Oracle vs PG Message-ID: <20181024054412.GM1658@paquier.xyz> References: <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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="tzZdJ4yHDV5r1Akt" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --tzZdJ4yHDV5r1Akt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > 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. -- Michael --tzZdJ4yHDV5r1Akt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIyBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlvQBqwACgkQnvQgOdby QH1cBQ/1FtOTX51EMib/GAGZ4qDmTW/Q42QDt+/dOizNvNjFJApavzXmPqEfqSvw xIQQiJwfwyGBpu8M6wUUG2JOGm4402dhfX30jGCQJtMdPSTA/l14LsrXT1bPqM9x Txrae+aSP6+qP/hagqIZbd8GuGd2rq/lTpg5J4yW4Q4s8FJc283DLxKH1JNxK/He Yn1eHC7azQS84FI135ct78Npr/LXUmoRHcqjJqmNqalwk107EfeGoZknziA6N+/l EUhq+caJMEz04R94m/2VcqMKcW4SiV40W/6FoIhMXaj7cBtEEHqZx7iMq0aALkHD 14n2OsObozFRF5RLI0BY5tCu9flbMoYSNdyaxj1lTbqqK+mAjwIA+Kk89uRxHXMi NmMo0biJvTErAH1KehtmhuNViPQbKvTVWdP3IbhPI61CiLN05tlRkmNwMSE1qYTG mFI9PBBZWNpAVm1TQgAY5xAv4rqK8y7N9hGwe/urMAmK4V6MuWt7NZqiB41BXYeU bWT4iRI6AYxVCAawbvBg+Va/un2ZsGEG5UtDvEnIW1m9G2DfwxypHPBZwvtKafih 6yvV5EKAb0nFdBhvWBh46/1SsHSQKn8ETKDpaCdqF+VexJYP+6/BydJunLSTAYto GJT6zj4RGyk+/+xmxF9j6Ler3+HHvCsQd2vF0Ry/AV0BoX5p3w== =org5 -----END PGP SIGNATURE----- --tzZdJ4yHDV5r1Akt--