Re: [GENERAL] debug_print_plan logs table alias used in join, not table name itself

2011-01-19 Thread frank joerdens
On Wed, Jan 19, 2011 at 7:10 PM, Tom Lane wrote: > frank joerdens writes: >> I was just experimenting with debug logging on 8.3 and am finding that >> I can't get it to log the table names involved in a given query, it >> will always print the table alias used in your join instead, e.g. > > I don

Re: [GENERAL] debug_print_plan logs table alias used in join, not table name itself

2011-01-19 Thread Tom Lane
frank joerdens writes: > I was just experimenting with debug logging on 8.3 and am finding that > I can't get it to log the table names involved in a given query, it > will always print the table alias used in your join instead, e.g. I don't know why you think that debug_print_plan is meant to do

[GENERAL] debug_print_plan logs table alias used in join, not table name itself

2011-01-19 Thread frank joerdens
I was just experimenting with debug logging on 8.3 and am finding that I can't get it to log the table names involved in a given query, it will always print the table alias used in your join instead, e.g. explaining a query such as woome=# explain select * from webapp_person p join auth_user a on

Re: [GENERAL] debug_print_plan

2005-03-23 Thread elein
Aha you are right. I tried this but set log min error statement instead and so *that* didn't work. Setting the right variable worked and I can now see the plan. Thanks!! --elein On Wed, Mar 23, 2005 at 01:05:30PM -0700, Michael Fuhr wrote: > On Wed, Mar 23, 2005 at 11:38:21AM -0800, elein wrote:

Re: [GENERAL] debug_print_plan

2005-03-23 Thread Tom Lane
[EMAIL PROTECTED] (elein) writes: > I cannot get debug_print_plan to print the query plan to the > log. /* * Print plan if debugging. */ if (Debug_print_plan) elog_node_display(DEBUG1, "plan", plan, Debug_pretty_print); Looks like you also need to

Re: [GENERAL] debug_print_plan

2005-03-23 Thread Michael Fuhr
On Wed, Mar 23, 2005 at 11:38:21AM -0800, elein wrote: > > I cannot get debug_print_plan to print the query plan to the > log. I have set it in the postgresql.conf file and bounced > the server. The output is simply not there. show shows > that the value is set, but no output. What's your log_

[GENERAL] debug_print_plan

2005-03-23 Thread elein
I cannot get debug_print_plan to print the query plan to the log. I have set it in the postgresql.conf file and bounced the server. The output is simply not there. show shows that the value is set, but no output. If someone can respond Right Now I'd very much appreciate it. I cannot get onto i

Re: [GENERAL] debug_print_plan (pg7.4) doesn't seem to do anything

2004-12-29 Thread Eric Brown
On Dec 29, 2004, at 3:16 PM, Tom Lane wrote: Eric Brown <[EMAIL PROTECTED]> writes: On Dec 29, 2004, at 2:28 PM, Tom Lane wrote: Eric Brown <[EMAIL PROTECTED]> writes: I thought setting debug_print_plan was supposed to explain every query in my log file? I don't see the plan print either. No, it j

Re: [GENERAL] debug_print_plan (pg7.4) doesn't seem to do anything

2004-12-29 Thread Tom Lane
Eric Brown <[EMAIL PROTECTED]> writes: > On Dec 29, 2004, at 2:28 PM, Tom Lane wrote: >> Eric Brown <[EMAIL PROTECTED]> writes: >>> I thought setting debug_print_plan was supposed to explain every query >>> in my log file? I don't see the plan print either. >> >> No, it just prints the plan. With

Re: [GENERAL] debug_print_plan (pg7.4) doesn't seem to do anything

2004-12-29 Thread Eric Brown
On Dec 29, 2004, at 2:28 PM, Tom Lane wrote: Eric Brown <[EMAIL PROTECTED]> writes: I thought setting debug_print_plan was supposed to explain every query in my log file? I don't see the plan print either. No, it just prints the plan. With settings like yours I get I don't get the the "DEBUG: par

Re: [GENERAL] debug_print_plan (pg7.4) doesn't seem to do anything

2004-12-29 Thread Tom Lane
Eric Brown <[EMAIL PROTECTED]> writes: > I thought setting debug_print_plan was supposed to explain every query > in my log file? I don't see the plan print either. No, it just prints the plan. With settings like yours I get DEBUG: StartTransactionCommand LOG: statement: select 2+2; DEBUG: p

[GENERAL] debug_print_plan (pg7.4) doesn't seem to do anything

2004-12-29 Thread Eric Brown
I have the following settings: syslog = 2 client_min_messages = notice log_min_messages = debug5 (tried debug1 too) log_error_verbosity = default (tried verbose too, but still doesn't print plan) log_statement = true log_duration = true debug_print_plan = true debug_print_parse = true I thought s