Amit Langote <amitlangote09@gmail.com> writes:
> On Thu, Feb 13, 2014 at 5:59 PM, amul sul <sul_amul@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 should use the macro GUC_check_errhint() to set up a hint inside
a GUC variable's check function. See check_XactIsoLevel() in
src/backend/commands/variable.c for examples.
regards, tom lane