Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ezFA2-0000IG-Qq for pgsql-committers@arkaria.postgresql.org; Fri, 23 Mar 2018 05:22:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ezFA0-0005DB-E1 for pgsql-committers@arkaria.postgresql.org; Fri, 23 Mar 2018 05:22:40 +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.89) (envelope-from ) id 1ezF9z-0005D2-Ub for pgsql-committers@lists.postgresql.org; Fri, 23 Mar 2018 05:22:40 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ezF9w-00019d-OH for pgsql-committers@lists.postgresql.org; Fri, 23 Mar 2018 05:22:38 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 4270C20D38; Fri, 23 Mar 2018 01:22:35 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Fri, 23 Mar 2018 01:22:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=DYZ5UgX2NZ8K5aGadObou4IJmtDxjAQOoIm+OVRvtjg=; b=RNIwSkRb pKRKB4IagtvyqakksHQrto8S0qyQVKYGiYqqulIorcOTAlaThMoA0FAr6KtSKGAt 2O+IXjtx94oenIUNo40u1GfWe5xg7GsqAVPtb88PrvRCZlc/KoSsHWGrM4dh9/oi 7UqWIXO0E/YQRhr4hcvc2bePbfDJoOd7bOrq8lwqp9eOM+F9xmjH/lX7PrtpsT8R RjKmtk84q0gIGQZj7biaZv3FxODQUofANutII4EBMcQWOcxD80QiqxlqiWyWauGx Dbam8g7M/ygkVaUxrgAvHNzHF6612+Q1tAdJJ6ujl8uE8H5mfFc05dxoFMI6dyZ9 teLcJCdUXrc+mg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=DYZ5UgX2NZ8K5aGadObou4IJmtDxj AQOoIm+OVRvtjg=; b=ZnTKTtDVyIlmY2I6SV0slOraeaiH2SGB88KJAx9HwJ+Fb GdQjhTOOQ9amDO547w0ltwAaiSQgF1owz88ur8DKk6KUboWggktDIUf11fNSIi18 Z1YqjDIK6Aj1lwviRErQHDc6CtcLggX2MsvPkFvwQ5vk0zHC8wKl2Eq8HMUrt16N t+RHsrojutIn3x3FuO4597YX3Aie/PAMLXtVlgVDuSZpGHNyTCnPOnJtTXmICpSh MCHGSpAozBMW9rfQ4DABXOIP8b2okCdx+P+91v5410kaendp+BzcRFXVrhp2PX+4 LyJlGjCnm2pijfAdfX8FgiNW6mcf1attDox2NKz4A== X-ME-Sender: Received: from intern.anarazel.de (unknown [136.24.76.189]) by mail.messagingengine.com (Postfix) with ESMTPA id D829624241; Fri, 23 Mar 2018 01:22:34 -0400 (EDT) Date: Thu, 22 Mar 2018 22:22:33 -0700 From: Andres Freund To: Peter Eisentraut Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Use stdbool.h if suitable Message-ID: <20180323052233.sjq26vqkdg5txrxg@alap3.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2018-03-23 00:42:39 +0000, Peter Eisentraut wrote: > Use stdbool.h if suitable > > Using the standard bool type provided by C allows some recent compilers > and debuggers to give better diagnostics. Also, some extension code and > third-party headers are increasingly pulling in stdbool.h, so it's > probably saner if everyone uses the same definition. > > But PostgreSQL code is not prepared to handle bool of a size other than > 1, so we keep our own old definition if we encounter a stdbool.h with a > bool of a different size. (Among current build farm members, this only > applies to old macOS versions on PowerPC.) > > To check that the used bool is of the right size, add a static > assertions about size of GinTernaryValue vs bool. This is currently the > only place that assumes that bool and char are of the same size. This appears to have broken buildfarm animal locust: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=locust&dt=2018-03-23%2001%3A13%3A30 I suspect that's because of the perl hunk > src/pl/plperl/plperl.h | 10 +++++----- Greetings, Andres Freund