From: Aleksander Alekseev <a.alekseev@postgrespro.ru>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Cc: Robert Haas <rhaas@postgresql.org>
Cc: Andres Freund <andres@anarazel.de>
Subject: Re: Yet another small patch - reorderbuffer.c:1099
Date: Tue, 5 Apr 2016 12:07:40 +0300
Message-ID: <20160405120740.5d92447c@fujitsu> (raw)
In-Reply-To: <CAB7nPqTvzAxvTuBQh+MTuPVfwHUeMq30z0hrVT3fWoYD-q71gA@mail.gmail.com>
References: <20160404190345.54d84ee8@fujitsu>
<CAB7nPqTvzAxvTuBQh+MTuPVfwHUeMq30z0hrVT3fWoYD-q71gA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
> I recall discussing this code with Andres, and I think that he has
> mentioned me this is intentional, because should things be changed for
> a reason or another in the future, we want to keep in mind that a list
> of TXIDs and a list of sub-TXIDs should be handled differently.
I see. If this it true I think there should be a comment that explains
it. When you read such a code you suspect a bug. Not mentioning that
static code analyzers (I'm currently experimenting with Clang and PVS
Studio) complain about code like this.
--
Best regards,
Aleksander Alekseev
http://eax.me/
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
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-hackers@postgresql.org
Cc: a.alekseev@postgrespro.ru, michael.paquier@gmail.com, rhaas@postgresql.org, andres@anarazel.de
Subject: Re: Yet another small patch - reorderbuffer.c:1099
In-Reply-To: <20160405120740.5d92447c@fujitsu>
References: <20160404190345.54d84ee8@fujitsu> <CAB7nPqTvzAxvTuBQh+MTuPVfwHUeMq30z0hrVT3fWoYD-q71gA@mail.gmail.com> <20160405120740.5d92447c@fujitsu>
* 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