Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1bd47d0

Browse files
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.com
1 parentd69d01b commit1bd47d0

File tree

1 file changed

+170
-209
lines changed

1 file changed

+170
-209
lines changed

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp