Amit Langote <[email protected]> writes:
> On Thu, Feb 13, 2014 at 5:59 PM, amul sul <[email protected]> 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


-- 
Sent via pgsql-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to