Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lEF6B-0003gV-Rc for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Feb 2021 17:34:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lEF6A-00020k-OF for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Feb 2021 17:34:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lEF6A-00020d-Eb for pgsql-hackers@lists.postgresql.org; Mon, 22 Feb 2021 17:34:18 +0000 Received: from mecador.bluegap.ch ([148.251.66.126]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lEF68-00043V-IV for pgsql-hackers@postgresql.org; Mon, 22 Feb 2021 17:34:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=bluegap.ch; s=mecador2020; t=1614015253; bh=1U/kkURJOxYiCpZYcj/0GW4IPtti3z9ZqEiCaf+uIQw=; l=586; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=q2NzytLJrvy73oYd8g54P4OiDNNry7l9Ea5uBmrYxs+2p495GmvAG8gbxvFA33gHW YjsYRogJHnRWEO6bC6QO6jrCPTZYksJ2v1Yu4IXb/HwZps0P72a6Zgm02MbcPwbVXY aoSqn0pAiScK1kHqV0ELunVshG91bQIABNbgOHMcXw4EX1KP3RaFuMPQOF7SakfVxj f3w0F/IxNHqTQf3i4SFtbAMc4hRBjOUohccl/Yk/VN8J/pPkWlKYaL8lKy5dYUAByD Yk4MGckwifSnNQ0Zf6BEhTLHMcjWe6N/S+QTdrqyy7DoEaG1VgVf0DUCqtj4kVS7fD XuDWCe9r5asUw== Subject: Re: [HACKERS] logical decoding of two-phase transactions To: Amit Kapila , Ajin Cherian Cc: Masahiko Sawada , Peter Smith , PostgreSQL Hackers References: From: Markus Wanner Message-ID: Date: Mon, 22 Feb 2021 18:34:13 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: 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 Hello Amit, On 04.01.21 09:18, Amit Kapila wrote: > Thanks, I have pushed the 0001* patch after making the above and a few > other cosmetic modifications. That commit added the following snippet to the top of ReorderBufferFinishPrepared: txn = ReorderBufferTXNByXid(rb, xid, true, NULL, commit_lsn, false); /* unknown transaction, nothing to do */ if (txn == NULL) return; Passing true for the create argument seems like an oversight. I think this should pass false and not ever (have to) create a ReorderBufferTXN entry. Regards Markus