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 1gFFfK-0001aT-8C for pgsql-general@arkaria.postgresql.org; Wed, 24 Oct 2018 09:41:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gFFfI-0004zj-6U for pgsql-general@arkaria.postgresql.org; Wed, 24 Oct 2018 09:41:24 +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.89) (envelope-from ) id 1gFFfH-0004zc-GO for pgsql-general@lists.postgresql.org; Wed, 24 Oct 2018 09:41:23 +0000 Received: from resqmta-ch2-04v.sys.comcast.net ([2001:558:fe21:29:69:252:207:36]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gFFfE-0001uJ-7P for pgsql-general@lists.postgresql.org; Wed, 24 Oct 2018 09:41:23 +0000 Received: from resomta-ch2-01v.sys.comcast.net ([69.252.207.97]) by resqmta-ch2-04v.sys.comcast.net with ESMTP id FFTegqBAGyO9KFFf9gO8EZ; Wed, 24 Oct 2018 09:41:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1540374075; bh=OWg9ukhiO7yu7Hoc+me9CuJv4ekcDkOYF8yFx9qnbCQ=; h=Received:Received:Received:From:To:Subject:Date:Message-ID: MIME-Version:Content-Type; b=leiLxEHc8wAqGWQMe9TAsnmIAvnQdtIzETRdyuq4LmFPWUgSHKBI10VZjp2p+mh++ RYveEgNmysKxHwQVIvvJkDtfuHB2gDqpcfYzOk884dAhlmmsu7mQB8ZImX0fvf3w2x aWkVwLqH7IEB6K7+3G5yXZNmXgdTZj3UISIYD/VVNJI3Nt4kM6EsKMkltoR8scETs/ QEnwB07ub+f5uMx6XH1T/k4TPygSEb/Wb/hOl1MnQF+zi2y7fsL+k4LjvNswbx61ys 0hDhIr+UQ1Uc2XPOShJtAKip3T+VEY9UnH35tzZkkJntoAQV+iJMOBKh2hQsknKXtW VxE5cmpA5Eq1w== Received: from jsievers.comcast.net ([12.30.159.20]) by resomta-ch2-01v.sys.comcast.net with ESMTPA id FFetghxFe5r3BFFetgQcQ3; Wed, 24 Oct 2018 09:41:12 +0000 Received: from jsievers.enova.com (localhost [127.0.0.1]) by jsievers.comcast.net (Postfix) with ESMTP id 33739260056; Wed, 24 Oct 2018 04:40:59 -0500 (CDT) From: Jerry Sievers To: Michael Paquier Cc: Laurenz Albe , Ravi Krishna , adrian.klaver@aklaver.com, pgsql-general@lists.postgresql.org Subject: Re: Oracle vs PG 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> <20181024054412.GM1658@paquier.xyz> Date: Wed, 24 Oct 2018 04:40:59 -0500 In-Reply-To: <20181024054412.GM1658@paquier.xyz> (Michael Paquier's message of "Wed, 24 Oct 2018 14:44:12 +0900") Message-ID: <87d0rz65sk.fsf@jsievers.enova.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-CMAE-Envelope: MS4wfFUCzoapkUotODxs69eOd01VD0zBY5O350YWKBmT/y42ZkW5zsGxo2DaJ63cXzGgvMzYkQF7C1KTueNfzi+bo7isQHSkz6jzltwruysrxZiinxOczqhn MmLUL6n/I2fX43Tpzj3H6h+2cZxL8wJhTWOfBCWaNJd2S4mNmFG4Fby/6li1amoqt5078qfDhRHJAudRxgPSA01lL5LHNQE1w5zWxRFtWDsmIbTLigLSVNKX qsKZg52tTAR0vaKwj7Bl6SM10P7Bm/sSyQCGBWUxTZEg6elHCtSQqh82TFTZJBDDxwhNUzkVw+csMi+we6T1BleyyDr+HvsiQGoKK8Ofguc= List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Michael Paquier 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