Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1anMza-0003pO-Cb for pgsql-hackers@arkaria.postgresql.org; Tue, 05 Apr 2016 09:09:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1anMzZ-000871-Pn for pgsql-hackers@arkaria.postgresql.org; Tue, 05 Apr 2016 09:09:45 +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.84_2) (envelope-from ) id 1anMyE-0005Eg-39 for pgsql-hackers@postgresql.org; Tue, 05 Apr 2016 09:08:22 +0000 Received: from newmail.postgrespro.ru ([93.174.131.138] helo=mail.postgrespro.ru) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1anMy6-00048s-G7; Tue, 05 Apr 2016 09:08:20 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id 6E27921C786C; Tue, 5 Apr 2016 12:08:12 +0300 (MSK) Received: from mail.postgrespro.ru ([127.0.0.1]) by localhost (mail.postgrespro.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OvswquBv5n5F; Tue, 5 Apr 2016 12:08:10 +0300 (MSK) Received: from fujitsu (unknown [192.168.27.1]) by mail.postgrespro.ru (Postfix) with ESMTPSA id E0E1221C786B; Tue, 5 Apr 2016 12:08:09 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1459847289; bh=IgTTFeIQ0hxJdzTcmg/eaNB7F+IUOo12tu5OCV34b/A=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=CjbCDKXC0rgGfNqh/IKljZOv/NuHNbE+G+21IcTsd7d1W1hH88gQ/p/uin8zqjQoe stM6vP1xnPvBv8amaEM1DgvkYWYCpdR+eIQJvSobZKFogn8whpGxd+nSKsGIkALfeq wdzJcnQoUWL3GWeqmPZn2DcMAKjdxuKsx7TJnST0= Date: Tue, 5 Apr 2016 12:07:40 +0300 From: Aleksander Alekseev To: Michael Paquier Cc: pgsql-hackers , Robert Haas , Andres Freund Subject: Re: Yet another small patch - reorderbuffer.c:1099 Message-ID: <20160405120740.5d92447c@fujitsu> In-Reply-To: References: <20160404190345.54d84ee8@fujitsu> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -3.0 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org > 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