Re: pg_upgrade: Improve invalid option handling

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: pg_upgrade: Improve invalid option handling
Дата
Msg-id 20190618081524.GB1966@paquier.xyz
обсуждение исходный текст
Ответ на Re: pg_upgrade: Improve invalid option handling  (Daniel Gustafsson <daniel@yesql.se>)
Ответы Re: pg_upgrade: Improve invalid option handling  (Daniel Gustafsson <daniel@yesql.se>)
Список pgsql-hackers
On Fri, Jun 14, 2019 at 12:34:36PM +0200, Daniel Gustafsson wrote:
> +    if ((log_opts.internal = fopen_priv(INTERNAL_LOG_FILE, "a")) == NULL)
> +        pg_fatal("could not write to log file \"%s\"\n", INTERNAL_LOG_FILE);
>
> While we’re at it, should we change this to “could not open log file” to make
> the messaging more consistent across the utilities (pg_basebackup and psql both
> use “could not open”)?

I would suggest "could not open file \"%s\": %s" instead with a proper
strerror().
--
Michael

Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Generating partitioning tuple conversion maps faster
Следующее
От: Daniel Gustafsson
Дата:
Сообщение: Re: pg_upgrade: Improve invalid option handling