[HACKERS] how set GUC_check_errhint_string in call_string_check_hook()

2014-02-13 Thread amul sul
Dear all, I need help to send hint message to erreport()  in  call_string_check_hook function [src/backend/utils/misc/guc.c:8092] In   call_string_check_hook(), following parameter are resets   /* Reset variables that might be set by hook */ 8100         GUC_check_errcode_value =

Re: [HACKERS] how set GUC_check_errhint_string in call_string_check_hook()

2014-02-13 Thread Amit Langote
Amul, On Thu, Feb 13, 2014 at 5:59 PM, amul sul sul_a...@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

Re: [HACKERS] how set GUC_check_errhint_string in call_string_check_hook()

2014-02-13 Thread Tom Lane
Amit Langote amitlangot...@gmail.com writes: On Thu, Feb 13, 2014 at 5:59 PM, amul sul sul_a...@yahoo.co.in wrote: 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. You