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 1fUT9D-0007CT-MY for pgsql-hackers@arkaria.postgresql.org; Sun, 17 Jun 2018 08:34:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fUT9B-0006rL-Rt for pgsql-hackers@arkaria.postgresql.org; Sun, 17 Jun 2018 08:34:53 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fUT9B-0006rB-GH for pgsql-hackers@lists.postgresql.org; Sun, 17 Jun 2018 08:34:53 +0000 Received: from mail-it0-x242.google.com ([2607:f8b0:4001:c0b::242]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fUT96-0000n8-PR for pgsql-hackers@postgresql.org; Sun, 17 Jun 2018 08:34:51 +0000 Received: by mail-it0-x242.google.com with SMTP id y127-v6so8924697itd.1 for ; Sun, 17 Jun 2018 01:34:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=i1qp4xmBfqvygoezMgiNl2JBc30fw6U0MyziHJuFKKU=; b=Ce2RHfX8/VmJlypD5iYAh0GPgFVOugQ2Y0XsNiRF2PfnUZiCRblwo4pzGomaGT2lNR ccMlzDuj4r7Kb8poM7hfpJZ+ATEDJ5/t8ymdDgN9nRAxM8Iu+MB7q5m3vAMTdF+zkUiw XNkomBRdzUWDluBkWYBdXGU39w7Gs38mHBg2RACoN5jml+5SZfkcqQA9OQ+hAlMJ/bgA SNrB8eFxI5LUMhhuiB6/ZRmu0AmXm2XiL0VY2E+n3VSm9lJPx5WpcY9JNJxHolkkzJhZ kyexI8aV77xQR+i8lXb8p0ZPywluichHmvOzYkdVxasPGruUBJQS1NqVuBq38gYJ7tKA CUTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=i1qp4xmBfqvygoezMgiNl2JBc30fw6U0MyziHJuFKKU=; b=fYH+Gh+kMpHxl0rUfpsMJDEf0D9Xm4h7ONIhE+ZUm1m7wd55xJmKFJgTGUyX0IHLkf BmTqFgxWXej8btM5JYVhjbhhqjaUdLo+StszQjr5XSed2fuuQYpOD+GqyqfQgWk4sney O8H7QSj/ml/hq1YSs+anwV/izdJfB0UFIEzSMhwBdijum4GtuVGOCAJDk3eNqqgVMZzf JrYYI2y6Zfnl7Bj/tuCWsIiCf1bWVUyD7LqkBsOM3Lsi8Tocg71Fvxwy+UP3NBsmQpSy +OqFG2ytYQJglJB5r4zV7J7n/E35SdT+ebl1vX/RPvff4cat16LL3zw2NiAAY18NFeRq rKNg== X-Gm-Message-State: APt69E18HIt3BbKLaZg5c3spGHmdKaTOfACHHbH/1xuR3wF50rNovnPT oE62M7VA9/3C0kj2tDoyUxv10q0+YMOiFFAsDZInEA== X-Google-Smtp-Source: ADUXVKIdT9fa67CbrElYb1v6tl2Xum5wMu4O4w5JlfxyiuOMoTNJZaj1T9OganKtzRyvUq096iQlKYlDOxidgnJA7qc= X-Received: by 2002:a24:a43:: with SMTP id 64-v6mr6415645itw.140.1529224487247; Sun, 17 Jun 2018 01:34:47 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:4a84:0:0:0:0:0 with HTTP; Sun, 17 Jun 2018 01:34:26 -0700 (PDT) In-Reply-To: <20180615190457.fpjrfwhfoke33c3j@alvherre.pgsql> References: <20180615190457.fpjrfwhfoke33c3j@alvherre.pgsql> From: Nikhil Sontakke Date: Sun, 17 Jun 2018 14:04:26 +0530 Message-ID: Subject: Re: pgsql: Store 2PC GID in commit/abort WAL recs for logical decoding To: Alvaro Herrera Cc: Heikki Linnakangas , Michael Paquier , Simon Riggs , pgsql-hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Alvaro, >> There was a slight oversight in the twophase_gid length calculation in >> the XactLogCommitRecord() code path in the cf5a1890592 commit. The >> corresponding XactLogAbortRecord() code path was ok. PFA, a small >> patch to fix the oversight. > > Forgot to add: maybe it would be useful to have tests in core where > these omissions become evident. Do you have some? > Thanks for the commit. I do have some tests. They are part of the "logical decoding of 2PC" patch which adds the needed infrastructure to *actually* use this code present in the core as of now. I am going to submit it in the upcoming commitfest. Regards, Nikhils -- Nikhil Sontakke http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services