Re: Badly designed error reporting code in controldata_utils.c

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Badly designed error reporting code in controldata_utils.c
Дата
Msg-id 5600.1457321676@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Badly designed error reporting code in controldata_utils.c  (Joe Conway <mail@joeconway.com>)
Ответы Re: Badly designed error reporting code in controldata_utils.c  (Joe Conway <mail@joeconway.com>)
Список pgsql-hackers
Joe Conway <mail@joeconway.com> writes:
> On 03/06/2016 05:47 PM, Tom Lane wrote:
>> That's much better, but is there a reason you're using exit(2)
>> and not exit(EXIT_FAILURE) ?

> Only because I was trying to stick with what was originally in
> src/bin/pg_controldata/pg_controldata.c

Meh.  It looks to me like the standard way to handle this
for code in src/common/ is exit(EXIT_FAILURE).
        regards, tom lane



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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: WIP: Upper planner pathification
Следующее
От: Tom Lane
Дата:
Сообщение: Re: WIP: Upper planner pathification