Re: pg_upgrade: Improve invalid option handling

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: pg_upgrade: Improve invalid option handling
Дата
Msg-id 722222fa-8a94-fb74-8d92-658b9bcdcec3@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: pg_upgrade: Improve invalid option handling  (Masahiko Sawada <sawada.mshk@gmail.com>)
Список pgsql-hackers
On 2019-06-13 14:30, Masahiko Sawada wrote:
> Why do we need to change pg_fatal() to fprintf() & exit()? It seems to
> me that we can still use pg_fatal() here since we write the message to
> stderr.

It just makes the output more consistent with other tools, e.g.,

old:

pg_upgrade: unrecognized option `--foo'

Try "pg_upgrade --help" for more information.
Failure, exiting

new:

pg_upgrade: unrecognized option `--foo'
Try "pg_upgrade --help" for more information.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Converting NOT IN to anti-joins during planning
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Update list of combining characters