Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mYJOg-00044s-Fb for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Oct 2021 02:44:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mYJOf-0007Ms-9Z for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Oct 2021 02:44:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mYJOe-0007Mj-Kq for pgsql-hackers@lists.postgresql.org; Thu, 07 Oct 2021 02:44:37 +0000 Received: from mail-il1-x131.google.com ([2607:f8b0:4864:20::131]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mYJOb-0005d0-DC for pgsql-hackers@lists.postgresql.org; Thu, 07 Oct 2021 02:44:35 +0000 Received: by mail-il1-x131.google.com with SMTP id b6so4959237ilv.0 for ; Wed, 06 Oct 2021 19:44:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Hvvnvgt/zni+EqbD+0afnuq6WfwrEdblcZbVVJMetiw=; b=0OgAN3nH4JMohW5svluOvUpuXWYaGf0EIZefoQ63jxDfPQij4hQHaaZcbSRUA+I/2T K6vEL3XXZaf47sC2OybjdI6HmU+h1cy1c8WRWmS/Xi648BL8gqrfAqpQfluYMtUOYkAo 2iMFc6YKUfHJRbLxg22fhudKzuYSgGOEOJ7u8/Wj3G1jy0QtA34BQDApIwYNgs+WorDs FEABLVur9ziwzvJOzPlpO/Medo0SYbO19rljCwAMVG+NI2Tka9EI76VhBUEiN/7WZ9+0 ofe+H3NbVBs3HM70VfVNXmdEglo/993Lg+2F4BnscDRXXApaWLOMfwbq0N8D+2AIanbj l8MQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Hvvnvgt/zni+EqbD+0afnuq6WfwrEdblcZbVVJMetiw=; b=sJQYmq5maVgxtic8nMjxEdXrWWPJVqbliaFze+0DkqzkD6k2T+smppNXvE/v6p0oY1 hAbB81rxLFJlC8fIlGH2IqPbqmjjUQdcRzqjG9BaZ+gZHmOCn7V7Xo4u/w1IujEyt+1a yYHTlbeQCHUcrXrWB8yJTRHBx/z1g56LkOvpujOM+mGqONLLhkV0QKbXn2wiub//Eh14 nhBEE4COmlSmKMuktRdVNafv9et9lGvKzPDG0rl+5bNvnlTbtlgzVfsw7yURVk8U5+3l yXln0FkYFs/gnBKJBnRiGyn2bK5k5hBIjT01uT0RIQjbNWVR32spWZKF7zEhcBzTdcCL 5TIw== X-Gm-Message-State: AOAM532OUuSpSOxEXeR4XHrlAlOT8Wc3ER1F0uvxUj4pDvYE9y+8xtMB NpAt6dB8ycDbmDI5/VYPrwX0vQ== X-Google-Smtp-Source: ABdhPJy5uTLG0Hc6uyKDx4lE9wpJvpIlNE4kbsDOzwnOSwBSAzM7SxZER9jnjM6z8oMsi4tlOnUAiw== X-Received: by 2002:a05:6e02:214b:: with SMTP id d11mr1233290ilv.305.1633574671700; Wed, 06 Oct 2021 19:44:31 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id h5sm13352641ioz.31.2021.10.06.19.44.30 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Oct 2021 19:44:31 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 4986F8007F2; Wed, 6 Oct 2021 21:44:30 -0500 (CDT) Date: Wed, 6 Oct 2021 21:44:30 -0500 From: Justin Pryzby To: Masahiko Sawada Cc: Michael Paquier , Kyotaro Horiguchi , Tom Lane , Peter Smith , Bruce Momjian , pgsql-hackers@lists.postgresql.org Subject: Re: strange case of "if ((a & b))" Message-ID: <20211007024430.GM27491@telsasoft.com> References: <20210906001110.GF26465@telsasoft.com> <20210909.141450.11969674682374713.horikyota.ntt@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Oct 07, 2021 at 11:18:24AM +0900, Masahiko Sawada wrote: > On Sat, Sep 11, 2021 at 2:44 PM Michael Paquier wrote: > > > > On Thu, Sep 09, 2021 at 02:14:50PM +0900, Kyotaro Horiguchi wrote: > > > Maybe I'm missing something, but I can see several instances of the > > > "eval-bool ? true : false" pattern after fd0625c7a9 that are not in > > > the latest 0002. > > > > Yep. There are more of these, and I have just looked at some of them > > as of the patches proposed. What was sent looked clean enough to > > progress a bit and be done with it. > > While reading the decode.c I found the extra parentheses and arrived > at this thread. I'm not quite sure how you managed to search for it - well done ;) > The discussion seems to get inactive now but one (0001 > patch) out of two patches Justin proposed [1] is not committed yet and > there seems no CF entry for this item (0002 patch already got > committed, fd0625c7a9). 0001 patch can be cleanly applied and looks > good to me. Note that I also included it here: https://www.postgresql.org/message-id/20210924215827.GS831@telsasoft.com Michael seems prefer writing (() != 0) in more cases than other people, so didn't care for that patch. https://www.postgresql.org/message-id/577206.1620628321@sss.pgh.pa.us -- Justin