pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Revert "Distinguish printf-like functions that support %m from t
Date: Sun, 12 Aug 2018 22:46:06 +0000
Message-ID: <E1foz7e-00024C-Tv@gemulon.postgresql.org> (raw)

Revert "Distinguish printf-like functions that support %m from those that don't."

This reverts commit 3a60c8ff892a8242b907f44702bfd9f1ff877d45.  Buildfarm
results show that that caused a whole bunch of new warnings on platforms
where gcc believes the local printf to be non-POSIX-compliant.  This
problem outweighs the hypothetical-anyway possibility of getting warnings
for misuse of %m.  We could use gnu_printf archetype when we've substituted
src/port/snprintf.c, but that brings us right back to the problem of not
getting warnings for %m.

A possible answer is to attack it in the other direction by insisting
that %m support be included in printf's feature set, but that will take
more investigation.  In the meantime, revert the previous change, and
update the comment for PGAC_C_PRINTF_ARCHETYPE to more fully explain
what's going on.

Discussion: https://postgr.es/m/2975.1526862605@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/46b5e7c4b5befbf6ac86d827a3a58f1f02c7338e

Modified Files
--------------
config/c-compiler.m4       | 20 +++++++++++++-------
configure                  |  6 +++---
src/include/c.h            |  6 +-----
src/include/pg_config.h.in |  4 ++--
src/include/utils/elog.h   | 30 +++++++++++++++---------------
5 files changed, 34 insertions(+), 32 deletions(-)



Message-ID: <E1foz7e-00024C-Tv@gemulon.postgresql.org>
Permalink:  ../E1foz7e-00024C-Tv@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1foz7e-00024C-Tv@gemulon.postgresql.org

 · 

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-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Revert "Distinguish printf-like functions that support %m from t
  In-Reply-To: <E1foz7e-00024C-Tv@gemulon.postgresql.org>
  References: <E1foz7e-00024C-Tv@gemulon.postgresql.org>

* 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