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 1lVx7o-00021z-Fg for pgsql-committers@arkaria.postgresql.org; Mon, 12 Apr 2021 14:01:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lVx7m-0007QP-MN for pgsql-committers@arkaria.postgresql.org; Mon, 12 Apr 2021 14:01:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lVx7m-0007Ps-Gp for pgsql-committers@lists.postgresql.org; Mon, 12 Apr 2021 14:01:10 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lVx7g-0002O8-6P for pgsql-committers@lists.postgresql.org; Mon, 12 Apr 2021 14:01:09 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 13CE11f42786229; Mon, 12 Apr 2021 10:01:01 -0400 From: Tom Lane To: Peter Eisentraut cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Silence some Coverity warnings and improve code consistency. In-reply-to: <3f7a17f6-42e4-9de8-9984-4b0bbdec737f@enterprisedb.com> References: <3f7a17f6-42e4-9de8-9984-4b0bbdec737f@enterprisedb.com> Comments: In-reply-to Peter Eisentraut message dated "Mon, 12 Apr 2021 09:23:20 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2786227.1618236061.1@sss.pgh.pa.us> Date: Mon, 12 Apr 2021 10:01:01 -0400 Message-ID: <2786228.1618236061@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Peter Eisentraut writes: > On 11.04.21 23:02, Tom Lane wrote: >> ... or more accurately, with an LL constant, which is not project >> style. Make all of these use INT64CONST(), as we do elsewhere. > I think this style could be considered obsolete because C99 requires LL > constants, and configure checks for it. I'm not worried about whether compilers will take LL --- after all, we also make free use of "long long" these days. I am worried that it does not necessarily equate to int64 exactly. In any case, I'm not a fan of TIMTOWTDI. If we want to remove [U]INT64CONST in favor of [U]LL, we should do so across the board, so as to maintain a consistent project style. regards, tom lane