]> granicus.if.org Git - postgresql/commit
initdb: Use varargs macro for PG_CMD_PRINTF
authorPeter Eisentraut <peter@eisentraut.org>
Thu, 8 Aug 2019 06:47:55 +0000 (08:47 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Thu, 8 Aug 2019 06:47:55 +0000 (08:47 +0200)
commit43211c2a02f39d6568496168413dc00e0399dc2e
tree5d74e34637893309cf1e54aa39b44a38ed64ca47
parente94cd0a8eb831d3ad756ad5f1e69b05392038355
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>
src/bin/initdb/initdb.c