From 9650830bc82045b32573e52b0843d6a2f56b802a Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 19 Aug 2008 18:30:04 +0000 Subject: Cause the output from debug_print_parse, debug_print_rewritten, and debug_print_plan to appear at LOG message level, not DEBUG1 as historically. Make debug_pretty_print default to on. Also, cause plans generated via EXPLAIN to be subject to debug_print_plan. This is all to make debug_print_plan a reasonably comfortable substitute for the former behavior of EXPLAIN VERBOSE. --- doc/src/sgml/config.sgml | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index 16a309547b1..4d8d1aea9a9 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -1,4 +1,4 @@ - + Server Configuration @@ -2817,7 +2817,6 @@ local0.* /var/log/postgresql debug_print_parse (boolean) debug_print_rewritten (boolean) debug_print_plan (boolean) - debug_pretty_print (boolean) debug_print_parse configuration parameter @@ -2827,21 +2826,34 @@ local0.* /var/log/postgresql debug_print_plan configuration parameter + + + These parameters enable various debugging output to be emitted. + When set, they print the resulting parse tree, the query rewriter + output, or the execution plan for each executed query. + These messages are emitted at LOG message level, so by + default they will appear in the server log but will not be sent to the + client. You can change that by adjusting + and/or + . + These parameters are off by default. + + + + + + debug_pretty_print (boolean) debug_pretty_print configuration parameter - These parameters enable various debugging output to be emitted. - For each executed query, they print - the resulting parse tree, the query rewriter output, or the - execution plan. debug_pretty_print indents - these displays to produce a more readable but much longer - output format. client_min_messages or - log_min_messages must be - DEBUG1 or lower to actually send this output - to the client or the server log, respectively. - These parameters are off by default. + When set, debug_pretty_print indents the messages + produced by debug_print_parse, + debug_print_rewritten, or + debug_print_plan. This results in more readable + but much longer output than the compact format used when + it is off. It is on by default. -- cgit v1.2.3