From: Tom Lane Date: Thu, 4 Nov 2010 21:15:38 +0000 (-0400) Subject: Include the current value of max_stack_depth in stack depth complaints. X-Git-Tag: REL9_1_ALPHA3~208 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6736916f5f5a5f340aa20d4b27540764b5646585;p=postgresql Include the current value of max_stack_depth in stack depth complaints. I'm mainly interested in finding out what it is on buildfarm machines, but including the active value in the message seems like good practice in any case. Add the info to the HINT, not the ERROR string, so as not to change the regression tests' expected output. --- diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index cba90a9e72..edf18fd0f2 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -3021,8 +3021,9 @@ check_stack_depth(void) ereport(ERROR, (errcode(ERRCODE_STATEMENT_TOO_COMPLEX), errmsg("stack depth limit exceeded"), - errhint("Increase the configuration parameter \"max_stack_depth\", " - "after ensuring the platform's stack depth limit is adequate."))); + errhint("Increase the configuration parameter \"max_stack_depth\" (currently %dkB), " + "after ensuring the platform's stack depth limit is adequate.", + max_stack_depth))); } }