initdb: Refactor PG_CMD_PUTS loops

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема initdb: Refactor PG_CMD_PUTS loops
Дата
Msg-id 2c50823b-f453-bb97-e38b-34751c51dcdf@enterprisedb.com
обсуждение исходный текст
Ответы Re: initdb: Refactor PG_CMD_PUTS loops  (John Naylor <john.naylor@enterprisedb.com>)
Re: initdb: Refactor PG_CMD_PUTS loops  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
Keeping the SQL commands that initdb runs in string arrays before
feeding them to PG_CMD_PUTS() seems unnecessarily verbose and
inflexible.  In some cases, the array only has one member.  In other
cases, one might want to use PG_CMD_PRINTF() instead, to parametrize a
command, but that would require breaking up the loop or using
workarounds like replace_token().  This patch unwinds all that; it's 
much simpler that way.
Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Dean Rasheed
Дата:
Сообщение: Re: Improve performance of pg_strtointNN functions
Следующее
От: "houzj.fnst@fujitsu.com"
Дата:
Сообщение: RE: Perform streaming logical transactions by background workers and parallel apply