Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WsxZI-0001mM-AF for pgsql-bugs@arkaria.postgresql.org; Fri, 06 Jun 2014 17:04:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WsxZH-0006OK-Ow for pgsql-bugs@arkaria.postgresql.org; Fri, 06 Jun 2014 17:04:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WsxZG-0006OD-Rn for pgsql-bugs@postgresql.org; Fri, 06 Jun 2014 17:04:38 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WsxZD-00007W-U8 for pgsql-bugs@postgresql.org; Fri, 06 Jun 2014 17:04:37 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s56H4TcM006688; Fri, 6 Jun 2014 13:04:29 -0400 From: Tom Lane To: Alvaro Herrera cc: Serge Negodyuck , pgsql-bugs@postgresql.org Subject: Re: BUG #8673: Could not open file "pg_multixact/members/xxxx" on slave during hot_standby In-reply-to: <20140606164727.GU5146@eldon.alvh.no-ip.org> References: <20131209142525.GA1123@awork2.anarazel.de> <20131209150345.GB1123@awork2.anarazel.de> <20131209182701.GD9519@awork2.anarazel.de> <20140103014616.GB7035@eldon.alvh.no-ip.org> <20140606013943.GT5146@eldon.alvh.no-ip.org> <20140606164727.GU5146@eldon.alvh.no-ip.org> Comments: In-reply-to Alvaro Herrera message dated "Fri, 06 Jun 2014 12:47:27 -0400" Date: Fri, 06 Jun 2014 13:04:29 -0400 Message-ID: <6687.1402074269@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Alvaro Herrera writes: > After some simplification I think it should be clearer. Thanks Andres > for commenting offlist. I find this not only unreadable but a bit scary: ! if (offset + MAX_MEMBERS_IN_LAST_MEMBERS_PAGE < offset) I'm worried whether some compilers might not decide that that's a can't-happen situation, and optimize the test away entirely. I think Andres' proposal is probably safer (though it needs comments). regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs