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 1f8X1X-00057D-9b for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Apr 2018 20:16:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f8X1V-0006Hu-KI for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Apr 2018 20:16:17 +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 1f8X0W-00089b-3G for pgsql-hackers@lists.postgresql.org; Tue, 17 Apr 2018 20:15:16 +0000 Received: from mail-qt0-x244.google.com ([2607:f8b0:400d:c0d::244]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1f8X0T-0006DY-A2 for pgsql-hackers@postgresql.org; Tue, 17 Apr 2018 20:15:15 +0000 Received: by mail-qt0-x244.google.com with SMTP id l11so10975385qtj.10 for ; Tue, 17 Apr 2018 13:15:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=RB8tWb2QshssKCCxKP0ewD/bjOJFNq/kac9eUz2IY9I=; b=u8rPZHvtigK5XPuY44R7HDluYnouneqGVJOTUmcKAzgI1S+HR4gd+h+RiPWE7OBObN TIv5esIQxF6ilJI9mxk7L2NVwSW/Cxuvi5r8eZZiuzITZGy5AzDB9qmzdC2qzLSJT1YB yia0QhuRGGrxoxDqPuYPM0t48oROi/VGYSYResREUHOUR8P3DJJjgAAjL8iad+d3TrHc c2hG4PdYwxhMNX+geAicTNeV8R76OvRJkJjKvp2YLbmhpzOs8AOgCEIYVH5eRLiYtexu VnxJEowZnuOJGkrs34hpLWT2XP7wpKnSOywn4GG+MQJixCPCTc+KtoK2pau+azirxX2V fkHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=RB8tWb2QshssKCCxKP0ewD/bjOJFNq/kac9eUz2IY9I=; b=AuHQiFyVVqp7r37jwBeZOEwD88hZ9MqSfNarNt5pNH43JFZ7NOU5mE/aGfolb3aOdB 1jYXk3jaq5SMiyzPFb6tCYSNLaU6uqoV9EansSy/Lz/85awnAFlLQfIa52BLHfOhX0BL OYGsX4ov6tfnvtTwJWCxqSEVcR4RmCLbsPbFS+xI9oScLPlHS1RUPoudcqtuoa8DDDvH KdG12h75qfqd2qRqgFaq8Z8y2TUJO5Z+5ifc+b8n29y8rQcqflYaJ2aWu4VkaGadDM2F ohGrWIvFfnkNAOMo57hTXwxoVtA4KaVDAOOPlbHdOEM+brnx5Gow3VocMCm+L4A4XsAL p69w== X-Gm-Message-State: ALQs6tD0Uy2OpU7xP75Z97I+CCd1ytxNBuA80esZofcteALMW99tKFVq VHlyrQImznDtGknuINPngNZjIg== X-Google-Smtp-Source: AIpwx4/yidT1xxBY13z2P5cpLKHYKckezGlnZSmw6li/boUUYQFlVwDI6Fv99wYuq/mWvGWy8MhonQ== X-Received: by 10.237.44.35 with SMTP id f32mr3800667qtd.86.1523996110716; Tue, 17 Apr 2018 13:15:10 -0700 (PDT) Received: from [10.10.30.114] ([208.123.164.34]) by smtp.gmail.com with ESMTPSA id l52sm11761128qtc.45.2018.04.17.13.15.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Apr 2018 13:15:09 -0700 (PDT) Sender: Heikki Linnakangas Subject: Re: pgsql: Store 2PC GID in commit/abort WAL recs for logical decoding To: Michael Paquier Cc: Simon Riggs , pgsql-hackers References: <33b787bf-dc20-1161-54e9-3f3b607bf59d@iki.fi> <20180410072435.GE26769@paquier.xyz> From: Heikki Linnakangas Message-ID: <6a9bcfd5-880d-9442-fed2-695ba8ef50f3@iki.fi> Date: Tue, 17 Apr 2018 16:15:08 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180410072435.GE26769@paquier.xyz> Content-Type: text/plain; charset=windows-1252; 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 10/04/18 03:24, Michael Paquier wrote: > + /* twophase_gid follows if XINFO_HAS_GID. As a null-terminated string. */ > + /* xl_xact_origin follows if XINFO_HAS_ORIGIN, stored unaligned! */ > > Worth mentioning that the first one is also unaligned with your patch? Hmm. 'twophase_gid' is actually 4-byte aligned here. But it's a string, so it doesn't matter whether it it is or not. > And that all the last fields of xl_xact_commit and xl_xact_abort are > kept as such on purpose? I think that's clear without an explicit comment. If it wasn't on purpose, we wouldn't have a comment pointing it out (or we would fix it so that it was aligned). Pushed, thanks for the review! - Heikki