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 1ff7SL-0007ZY-Sd for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Jul 2018 17:38:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ff7SJ-0006zO-M0 for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Jul 2018 17:38:39 +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 1ff7SJ-0006zH-Ep for pgsql-hackers@lists.postgresql.org; Mon, 16 Jul 2018 17:38:39 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ff7SG-0006Lg-1m for pgsql-hackers@postgresql.org; Mon, 16 Jul 2018 17:38:38 +0000 Received: by mail-wm0-x241.google.com with SMTP id s14-v6so16728548wmc.1 for ; Mon, 16 Jul 2018 10:38:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=UjjLgYifojxbRDeCsmy5Yi2nTtmpvmUCcz3qxz2i8Pk=; b=tVC+Ow09JV06vMFcX47c81NfVaZNURRFVS23YJJtx7qnbh6ajJlEia/XgQvJf/GQV3 0DjXhYFBNdZv3T2e2TnDvFlDJ0zJelcyv6j2j8ampGrv+FIrEP4kipRwFh2R+xVmE9Nz vkhcZZ9euaFUpwm2B4RVeMNs5XCjp7M6p4CcrzP31RTk5OBpVVJLLE5jJx6eIeyZ1PK3 cGGy0dl4BiIdpyHIMaKdHbpQ8fUDvSyMjbSNl4E5HQpVmMZmbFKWKcKNY2q3EHeY+Hhw ZOq2yCr0vUE/p60qCXWa/m5DvOGEwuU1U7A/+LMtRO6Xbukc1besvs5A4W4PWW6RM91U P0HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=UjjLgYifojxbRDeCsmy5Yi2nTtmpvmUCcz3qxz2i8Pk=; b=CW9rVg+2/aCizGtewImGFFvN7t+QNy0n+F2x6XWFIZEi44cXQqD/k6zGsfIDoCsAX4 cGTR4fT+C408PSaqP9oBH6hnPyezbNEi4ZWzTYMjebkt59ueH41jE+NsAywYREF1GCWj 1hN0u+5frI3j/jEbt8j14Z6o7+gFAXjPkcgzP81EYav3/Axe8QdHPwmAVIp8i7MfiM4c OXG7GeMHn7DezDZBpResdqm6LvKtN8E0NvdDSrN32Usj+X4rW4GCfv8r/JnJO3G52rId /85uFdDsm2MvmwhYzELoo+zAWdEkTXx8iCzz8Ho4PoWnUCU4rly0OnrXlxplv7W6lY0s g4zw== X-Gm-Message-State: AOUpUlF44qop62hsWZTtiuQpigAl0F7yYgzVHrCAtIXqZYQKfr3+Y1yv Cc8cgK41rXbrAARFCnzjS3bzYr71rOGzB0dr8wcnBiNySmHJw80QjtGRK/HUSQJjhSoBd7/xPq6 IntkuHpGD51Z7mtQcMny4WcRjVWrX0pjnXlgIdMFk2ZR4XmFOHur/2cQCvn7u7Peq0dyBQ04YPt p/X6LnLYD5rUc= X-Google-Smtp-Source: AAOMgpc+vcozmUmS96G5ay9NLkF6U2mr0MzertWpXagd0nb9wYUc4o3kjax3YwAGPNz+u45D/C0pBg== X-Received: by 2002:a1c:3b54:: with SMTP id i81-v6mr10734110wma.143.1531762713509; Mon, 16 Jul 2018 10:38:33 -0700 (PDT) Received: from [10.137.2.21] (static-84-42-175-93.net.upcbroadband.cz. [84.42.175.93]) by smtp.gmail.com with ESMTPSA id o4-v6sm58723897wra.3.2018.07.16.10.38.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Jul 2018 10:38:32 -0700 (PDT) Subject: Re: [HACKERS] logical decoding of two-phase transactions To: Tom Lane , Robert Haas Cc: 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 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> <15404.1531761677@sss.pgh.pa.us> From: Tomas Vondra Message-ID: Date: Mon, 16 Jul 2018 19:38:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <15404.1531761677@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 07/16/2018 07:21 PM, Tom Lane wrote: > 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? > Unfortunately it does :-( Without it the decoding (or output plugins) may see catalogs broken in various ways - the catalog records may get vacuumed, HOT chains are broken, ... There were attempts to change that part, but that seems an order of magnitude more invasive than this. > 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. > Why? How is this significantly different from other patches touching ProcArray and related bits? regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services