Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fpyUF-00066H-Cr for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Aug 2018 16:17:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fpyUD-0007eG-Jo for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Aug 2018 16:17:29 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fpyUD-0007e9-9Z for pgsql-hackers@lists.postgresql.org; Wed, 15 Aug 2018 16:17:29 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fpyU6-0003vc-Kk for pgsql-hackers@lists.postgresql.org; Wed, 15 Aug 2018 16:17:28 +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 w7FGHJig011139; Wed, 15 Aug 2018 12:17:19 -0400 From: Tom Lane To: Robert Haas cc: Andres Freund , PostgreSQL Hackers Subject: Re: C99 compliance for src/port/snprintf.c In-reply-to: References: <17245.1534289329@sss.pgh.pa.us> <9456.1534347706@sss.pgh.pa.us> <20180815155237.pz5fgfmdo4cgqjta@alap3.anarazel.de> Comments: In-reply-to Robert Haas message dated "Wed, 15 Aug 2018 12:01:28 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <11137.1534349838.1@sss.pgh.pa.us> Date: Wed, 15 Aug 2018 12:17:18 -0400 Message-ID: <11138.1534349838@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Robert Haas writes: > On Wed, Aug 15, 2018 at 11:52 AM, Andres Freund wrote: >> We could just mandate C99, more generally. >> >> /me goes and hides in a bush. > It's hard to believe that would cost much. I think we have done that, piece by piece, where it was actually buying us something. In particular we've gradually moved the goalposts for *printf compliance, and I'm proposing here to move them a bit further. I'm not sure what "we're going to insist on C99" even means concretely, given this position ... > Personally, I'd prefer to > continue avoiding // comments and intermingled declarations of > variables and code on grounds of style and readability. ... which I agree with. > But it's kind > of difficult to believe that we really need to worry about people > still running 20-year old compilers very much. Sure. It's been a long time since anybody worried about those as optimization targets, for instance. Still, I'm not in favor of actively breaking compatibility unless it buys us something. regards, tom lane