From: | amul sul <sul_amul(at)yahoo(dot)co(dot)in> |
---|---|
To: | Postgre SQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | how set GUC_check_errhint_string in call_string_check_hook() |
Date: | 2014-02-13 08:59:39 |
Message-ID: | 1392281979.62453.YahooMailNeo@web193502.mail.sg3.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
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 = ERRCODE_INVALID_PARAMETER_VALUE;
8101 GUC_check_errmsg_string = NULL;
8102 GUC_check_errdetail_string = NULL;
8103 GUC_check_errhint_string = NULL;
at line 8107 in ereport() it has conditional operation as
8113GUC_check_errdetail_string ?
8114 errdetail_internal("%s", GUC_check_errdetail_string) : 0,
I have basic questions,
1. Condition testing of GUC_check_errdetail_string or other GUC_* is needed, even if we resting it?
2. Can I pass hint message in above ereport(), how?
Thanks in advance !
Regards,
Amul Sul
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2014-02-13 09:46:16 | Re: [BUG] Archive recovery failure on 9.3+. |
Previous Message | Andrea Suisani | 2014-02-13 08:36:09 | Re: Recovery inconsistencies, standby much larger than primary |