From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Nikhil Sontakke <nikhils@2ndquadrant.com>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: 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: Wed, 20 Jun 2018 12:23:42 -0400
Message-ID: <20180620162342.zfpxeriuk4oafxln@alvherre.pgsql> (raw)
In-Reply-To: <20180615191218.py3ti2fzxlysxf7h@alvherre.pgsql>
On 2018-Jun-15, Alvaro Herrera wrote:
> By the way, why do we need to strlen() the target buffer when strlcpy
> already reports the length? (You could argue that there is a difference
> if the string is truncated ... but surely we don't care about that case)
> I propose the attached.
I decided not to push this after all. Yes, one strlen is saved, but
there is some code clarity lost also, and this is certainly not a
contention point.
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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: alvherre@2ndquadrant.com, nikhils@2ndquadrant.com, 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: <20180620162342.zfpxeriuk4oafxln@alvherre.pgsql>
References: <20180615191218.py3ti2fzxlysxf7h@alvherre.pgsql> <20180620162342.zfpxeriuk4oafxln@alvherre.pgsql>
* 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