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() Amit Langote <amitlangote09@gmail.com>
Re: how set GUC_check_errhint_string in call_string_check_hook() Tom Lane <tgl@sss.pgh.pa.us>
Amul, On Thu, Feb 13, 2014 at 5:59 PM, amul sul 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 по дате отправления
От: Greg Stark
Дата: