pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Rowley <david.rowley@2ndquadrant.com>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: Andrew Gierth <andrew@tao11.riddles.org.uk>
Cc: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: Re: Suspicious strcmp() in src/backend/parser/parse_expr.c
Date: Thu, 11 Apr 2019 10:12:06 -0400
Message-ID: <9612.1554991926@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKJS1f9hkG5qKjF-LhcdfiBShKa=ZQSdfP2BZ=1Gj19g6s4Ywg@mail.gmail.com>
References: <CADRDgG6fzA8A2oeygUw4=o7ywo4kvz26NxCSgpq22nMD73Bx4Q@mail.gmail.com>
	<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>
	<CAKJS1f9hkG5qKjF-LhcdfiBShKa=ZQSdfP2BZ=1Gj19g6s4Ywg@mail.gmail.com>

David Rowley <david.rowley@2ndquadrant.com> 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





view thread (13+ messages)  latest in thread

Message-ID: <9612.1554991926@sss.pgh.pa.us>
Permalink:  ../9612.1554991926@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9612.1554991926@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, david.rowley@2ndquadrant.com, michael@paquier.xyz, andrew@tao11.riddles.org.uk, rikard.falkeborn@gmail.com
  Subject: Re: Suspicious strcmp() in src/backend/parser/parse_expr.c
  In-Reply-To: <9612.1554991926@sss.pgh.pa.us>
  References: <CADRDgG6fzA8A2oeygUw4=o7ywo4kvz26NxCSgpq22nMD73Bx4Q@mail.gmail.com> <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> <CAKJS1f9hkG5qKjF-LhcdfiBShKa=ZQSdfP2BZ=1Gj19g6s4Ywg@mail.gmail.com> <9612.1554991926@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox