log_error_verbosity and unexpected errors

Поиск
Список
Период
Сортировка
От Greg Stark
Тема log_error_verbosity and unexpected errors
Дата
Msg-id CAM-w4HMStzNspuA9nJBij1ADKeJ0grbUutJsPVRY4ao8wSSMAw@mail.gmail.com
обсуждение исходный текст
Ответы Re: log_error_verbosity and unexpected errors  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
I think log_error_verbosity is a strange variable. It's useless for
expected user-facing errors but essential for unexpected errors that
indicate bugs in the code -- and you can only have it on for
everything or off for everything.

I'm finding I usually want it set to 'verbose' for anything that
PANICs or is generated by an elog() but it's just noise for anything
generated by an ereport() and is ERROR or below.

The minimum suggested change would to make it implicitly true for
PANIC and any unexpected elog()s and leave the GUC for enabling it in
the other cases.

-- 
greg



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

Предыдущее
От: Sawada Masahiko
Дата:
Сообщение: Re: TODO : Allow parallel cores to be used by vacuumdb [ WIP ]
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Aggregate function API versus grouping sets