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 1hEaR3-0006wV-Fq for pgsql-bugs@arkaria.postgresql.org; Thu, 11 Apr 2019 14:12:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hEaR2-00080s-8O for pgsql-bugs@arkaria.postgresql.org; Thu, 11 Apr 2019 14:12:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEaR2-00080l-0q for pgsql-bugs@lists.postgresql.org; Thu, 11 Apr 2019 14:12:12 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEaQz-0006dP-S8 for pgsql-bugs@lists.postgresql.org; Thu, 11 Apr 2019 14:12:11 +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 x3BEC6cb009613; Thu, 11 Apr 2019 10:12:06 -0400 From: Tom Lane To: David Rowley cc: Michael Paquier , Andrew Gierth , Rikard Falkeborn , PostgreSQL mailing lists Subject: Re: Suspicious strcmp() in src/backend/parser/parse_expr.c In-reply-to: References: <87pnptwl1a.fsf@news-spur.riddles.org.uk> <1040.1554936212@sss.pgh.pa.us> <20190411021946.GG2728@paquier.xyz> <12975.1554958549@sss.pgh.pa.us> <20190411065055.GR2728@paquier.xyz> Comments: In-reply-to David Rowley message dated "Fri, 12 Apr 2019 02:06:11 +1200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <9611.1554991926.1@sss.pgh.pa.us> Date: Thu, 11 Apr 2019 10:12:06 -0400 Message-ID: <9612.1554991926@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk David Rowley writes: > formatting.c in NUM_prepare_locale() > else if (strcmp(Np->decimal, ",") !=0) I'll bet a nickel that that's pgindent's fault. It probably thinks that "decimal" is a typedef (greps typedefs.list ... yes), and that tends to result in funny space-omissions later in the line. regards, tom lane