forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1bd47d0
committed
initdb: Refactor PG_CMD_PUTS loops
Keeping the SQL commands that initdb runs in string arrays beforefeeding them to PG_CMD_PUTS() seems unnecessarily verbose andinflexible. In some cases, the array only has one member. In othercases, one might want to use PG_CMD_PRINTF() instead, to parametrize acommand, but that would require breaking up the loop or usingworkarounds like replace_token(). Unwind all that; it's much simplerthat way.Reviewed-by: John Naylor <john.naylor@enterprisedb.com>Reviewed-by: Andrew Dunstan <andrew@dunslane.net>Discussion:https://www.postgresql.org/message-id/flat/2c50823b-f453-bb97-e38b-34751c51dcdf%40enterprisedb.com1 parentd69d01b commit1bd47d0
1 file changed
+170
-209
lines changed0 commit comments
Comments
(0)