]> granicus.if.org Git - postgresql/commitdiff
Include the current value of max_stack_depth in stack depth complaints.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 4 Nov 2010 21:15:38 +0000 (17:15 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 4 Nov 2010 21:15:38 +0000 (17:15 -0400)
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.

src/backend/tcop/postgres.c

index cba90a9e727e6db29086121c815a93b409d2534c..edf18fd0f20b6500fbb0136aa046e98524157e63 100644 (file)
@@ -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)));
        }
 }