Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hERkh-0003Pl-Vk for pgsql-bugs@arkaria.postgresql.org; Thu, 11 Apr 2019 04:55:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hERkg-0002gb-0U for pgsql-bugs@arkaria.postgresql.org; Thu, 11 Apr 2019 04:55:54 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hERkf-0002Z2-Kn for pgsql-bugs@lists.postgresql.org; Thu, 11 Apr 2019 04:55:53 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hERkd-0007NQ-CZ for pgsql-bugs@lists.postgresql.org; Thu, 11 Apr 2019 04:55:52 +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 x3B4tndb012976; Thu, 11 Apr 2019 00:55:49 -0400 From: Tom Lane To: Michael Paquier cc: Andrew Gierth , Rikard Falkeborn , pgsql-bugs@lists.postgresql.org Subject: Re: Suspicious strcmp() in src/backend/parser/parse_expr.c In-reply-to: <20190411021946.GG2728@paquier.xyz> References: <87pnptwl1a.fsf@news-spur.riddles.org.uk> <1040.1554936212@sss.pgh.pa.us> <20190411021946.GG2728@paquier.xyz> Comments: In-reply-to Michael Paquier message dated "Thu, 11 Apr 2019 11:19:46 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <12974.1554958549.1@sss.pgh.pa.us> Date: Thu, 11 Apr 2019 00:55:49 -0400 Message-ID: <12975.1554958549@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Michael Paquier writes: > On Wed, Apr 10, 2019 at 06:43:32PM -0400, Tom Lane wrote: >> Indeed. Considering how much I hate using strcmp's result as a boolean, >> you'd think I'd have got that right. Thanks for noticing! > Would it be worth changing these as well? I'd be +1 for that, just on the grounds of having consistent coding style. But I'm not sufficiently excited about it to do the work myself ... regards, tom lane