Re: minor fix of elevel in fd.c

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: minor fix of elevel in fd.c
Дата
Msg-id 14986.1150164542@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: minor fix of elevel in fd.c  ("Qingqing Zhou" <zhouqq@cs.toronto.edu>)
Список pgsql-patches
"Qingqing Zhou" <zhouqq@cs.toronto.edu> writes:
> "Tom Lane" <tgl@sss.pgh.pa.us> wrote
>>> True, but current code just check the return value of AllocateABC() then
>>> decide to upgrade elevel to FATAL.
>>
>> Where?

> In ValidatePgVersion(), FindMyDatabase(), etc -- though in practice this
> error can hardly happen anyway.

Doesn't matter because those functions only run during backend startup,
a time when ERROR and FATAL are equivalent anyhow.  It's debatable
whether those functions should be coded with the error level as ERROR
or FATAL --- there's no functional difference but it seems marginally
clearer to me to write FATAL in places where we know an error is going
to force backend exit.  You might see it differently though.

            regards, tom lane

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

Предыдущее
От: "Qingqing Zhou"
Дата:
Сообщение: Re: minor fix of elevel in fd.c
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: ADD/DROPS inherits