pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: initdb: Use varargs macro for PG_CMD_PRINTF
Date: Thu, 08 Aug 2019 09:20:21 +0000
Message-ID: <E1hvear-00024W-0O@gemulon.postgresql.org> (raw)

initdb: Use varargs macro for PG_CMD_PRINTF

I left PG_CMD_PUTS around even though it could be handled by
PG_CMD_PRINTF since PG_CMD_PUTS is sometimes called with non-literal
arguments, and so that would create a potential problem if such a
string contained percent signs.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/43211c2a02f39d6568496168413dc00e0399dc2e

Modified Files
--------------
src/bin/initdb/initdb.c | 28 ++++++++--------------------
1 file changed, 8 insertions(+), 20 deletions(-)



Message-ID: <E1hvear-00024W-0O@gemulon.postgresql.org>
Permalink:  ../E1hvear-00024W-0O@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hvear-00024W-0O@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: peter@eisentraut.org
  Subject: Re: pgsql: initdb: Use varargs macro for PG_CMD_PRINTF
  In-Reply-To: <E1hvear-00024W-0O@gemulon.postgresql.org>
  References: <E1hvear-00024W-0O@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