Re: how set GUC_check_errhint_string in call_string_check_hook()

Поиск
Список
Период
Сортировка
От Amit Langote
Тема Re: how set GUC_check_errhint_string in call_string_check_hook()
Дата
Msg-id CA+HiwqGfepfZ0mDi2mdBVSws0pDhqZ5_XPkT=CVL_rrEFZg0uw@mail.gmail.com
обсуждение исходный текст
Ответ на how set GUC_check_errhint_string in call_string_check_hook()  (amul sul <sul_amul@yahoo.co.in>)
Ответы Re: how set GUC_check_errhint_string in call_string_check_hook()  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Amul,

On Thu, Feb 13, 2014 at 5:59 PM, amul sul <sul_amul@yahoo.co.in> wrote:

> I have basic questions,
>
> 1. Condition testing of  GUC_check_errdetail_string or other GUC_*  is
> needed, even if we resting it?

A few lines before this conditional test, there is a call to the hook
function (using the check_hook function pointer) as follows which
might set these variables:

if (!(*conf->check_hook) (newval, extra, source))


> 2. Can I pass hint message in above ereport(), how?
>

It could be done by setting the check hook related global variable
"GUC_check_errhint_string" inside your hook function.

--
Amit



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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: [BUG] Archive recovery failure on 9.3+.
Следующее
От: Greg Stark
Дата:
Сообщение: Re: Recovery inconsistencies, standby much larger than primary