Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ff7Bj-0006ac-KZ for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Jul 2018 17:21:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ff7Bh-000163-PV for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Jul 2018 17:21:29 +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 1ff7Bh-00015w-Ia for pgsql-hackers@lists.postgresql.org; Mon, 16 Jul 2018 17:21:29 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ff7Bf-0005zh-26 for pgsql-hackers@postgresql.org; Mon, 16 Jul 2018 17:21:29 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w6GHLHej015405; Mon, 16 Jul 2018 13:21:17 -0400 From: Tom Lane To: Robert Haas cc: Tomas Vondra , Nikhil Sontakke , David Steele , Andres Freund , Andrew Dunstan , Simon Riggs , Craig Ringer , Peter Eisentraut , Petr Jelinek , Sokolov Yura , Stas Kelvich , Dmitry Dolgov <9erthalion6@gmail.com>, Masahiko Sawada , PostgreSQL Hackers Subject: Re: [HACKERS] logical decoding of two-phase transactions In-reply-to: References: <782517ca-1e99-06fe-eba9-34f826118289@2ndquadrant.com> <9cac2837-7e58-1cad-3940-27ac0dd7c198@2ndquadrant.com> <20180406162023.wcic5kw73bgswgb6@alap3.anarazel.de> <9ea4c35b-f8ec-220b-2429-b860b49748f3@pgmasters.net> <0c7e9fb9-01f7-32! 84-da9e-22b6dde679d4@2ndquadrant.com> Comments: In-reply-to Robert Haas message dated "Mon, 16 Jul 2018 12:15:46 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15403.1531761677.1@sss.pgh.pa.us> Date: Mon, 16 Jul 2018 13:21:17 -0400 Message-ID: <15404.1531761677@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Robert Haas writes: > I agree. As a general statement, I think the idea of trying to > prevent transactions from aborting is really scary. It's almost an > axiom of the system that we're always allowed to abort, and I think > there could be a lot of unintended and difficult-to-fix consequences > of undermining that guarantee. I think it will be very difficult to > create a sound system for delaying transactions, and I doubt very much > that the proposed system is sound. Ugh, is this patch really dependent on such a thing? TBH, I think the odds of making that work are indistinguishable from zero; and even if you managed to commit something that did work at the instant you committed it, the odds that it would stay working in the face of later system changes are exactly zero. I would reject this idea out of hand. regards, tom lane