Re: [Suspect SPAM] Better error messages when lacking connectionslots for autovacuum workers and bgworkers

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: [Suspect SPAM] Better error messages when lacking connectionslots for autovacuum workers and bgworkers
Дата
Msg-id 20190214230854.GB2240@paquier.xyz
обсуждение исходный текст
Ответ на Re: [Suspect SPAM] Better error messages when lacking connectionslots for autovacuum workers and bgworkers  (Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>)
Список pgsql-hackers
On Thu, Feb 14, 2019 at 09:04:37PM +0900, Kyotaro HORIGUCHI wrote:
> I agree to the distinctive messages, but the autovaccum and
> bgworker cases are in a kind of internal error, and they are not
> "connection"s. I feel that elog is more suitable for them.

I used ereport() for consistency with the existing code, still you are
right that we ought to use elog() as this is the case of a problem
which should not happen.
--
Michael

Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: [PATCH] xlogreader: do not read a file block twice
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: pg_basebackup ignores the existing data directory permissions