pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <hlinnaka@iki.fi>
To: Michael Paquier <michael@paquier.xyz>
Cc: Simon Riggs <simon@2ndQuadrant.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: pgsql: Store 2PC GID in commit/abort WAL recs for logical decoding
Date: Tue, 17 Apr 2018 16:15:08 -0400
Message-ID: <6a9bcfd5-880d-9442-fed2-695ba8ef50f3@iki.fi> (raw)
In-Reply-To: <20180410072435.GE26769@paquier.xyz>
References: <E1f1EEd-000851-3T@gemulon.postgresql.org>
	<33b787bf-dc20-1161-54e9-3f3b607bf59d@iki.fi>
	<20180410072435.GE26769@paquier.xyz>

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




view thread (10+ messages)  latest in thread

Message-ID: <6a9bcfd5-880d-9442-fed2-695ba8ef50f3@iki.fi>
Permalink:  ../6a9bcfd5-880d-9442-fed2-695ba8ef50f3@iki.fi/
Also on:    postgresql.org/message-id/6a9bcfd5-880d-9442-fed2-695ba8ef50f3@iki.fi

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: hlinnaka@iki.fi, michael@paquier.xyz, simon@2ndQuadrant.com, pgsql-hackers@postgresql.org
  Subject: Re: pgsql: Store 2PC GID in commit/abort WAL recs for logical decoding
  In-Reply-To: <6a9bcfd5-880d-9442-fed2-695ba8ef50f3@iki.fi>
  References: <E1f1EEd-000851-3T@gemulon.postgresql.org> <33b787bf-dc20-1161-54e9-3f3b607bf59d@iki.fi> <20180410072435.GE26769@paquier.xyz> <6a9bcfd5-880d-9442-fed2-695ba8ef50f3@iki.fi>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox