initdb: Use varargs macro for PG_CMD_PRINTF

Peter Eisentraut <peter@eisentraut.org>

Commit: 43211c2a02f39d6568496168413dc00e0399dc2e
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2019-08-08T06:47:55Z
Releases: 13.0
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>

Files

PathChange+/−
src/bin/initdb/initdb.c modified +8 −20