pgsql: pg_upgrade: Fix exec_prog API to be less flaky
В списке pgsql-committers по дате отправления:
| От | Alvaro Herrera |
|---|---|
| Тема | pgsql: pg_upgrade: Fix exec_prog API to be less flaky |
| Дата | |
| Msg-id | E1T645p-0000LJ-4y@gemulon.postgresql.org обсуждение |
| Список | pgsql-committers |
pg_upgrade: Fix exec_prog API to be less flaky The previous signature made it very easy to pass something other than the printf-format specifier in the corresponding position, without any warning from the compiler. While at it, move some of the escaping, redirecting and quoting responsibilities from the callers into exec_prog() itself. This makes the callsites cleaner. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/088c065ce8e405fafbfa966937184ece9defcf20 Modified Files -------------- contrib/pg_upgrade/check.c | 9 +--- contrib/pg_upgrade/dump.c | 9 ++-- contrib/pg_upgrade/exec.c | 80 ++++++++++++++++++++------------------ contrib/pg_upgrade/pg_upgrade.c | 68 +++++++++++++-------------------- contrib/pg_upgrade/pg_upgrade.h | 9 ++-- contrib/pg_upgrade/server.c | 34 ++++++++--------- 6 files changed, 96 insertions(+), 113 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера