pgsql: initdb: Use varargs macro for PG_CMD_PRINTF

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: initdb: Use varargs macro for PG_CMD_PRINTF
Date: 2019-08-08 09:20:21
Message-ID: E1hvear-00024W-0O@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)sss(dot)pgh(dot)pa(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2019-08-08 19:03:49 pgsql: Fix certificate subjects in ldap test
Previous Message Tom Lane 2019-08-07 22:09:47 pgsql: Doc: document permissions required for ANALYZE.