Yet more logging questions

Started by mlwabout 24 years ago3 messages
#1mlw
markw@mohawksoft.com

I was wondering if there was a way to log the "explain" of a query. Not the
full plan mind you, just what would be the result of an "explain." That in
conjunction with query statistics would be quite helpful (and resemble some of
the typical logging one can do with Oracle.)

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: mlw (#1)
Re: Yet more logging questions

mlw <markw@mohawksoft.com> writes:

I was wondering if there was a way to log the "explain" of a query.

Being a NOTICE, it *is* logged.

regards, tom lane

#3mlw
markw@mohawksoft.com
In reply to: mlw (#1)
Re: Yet more logging questions

Tom Lane wrote:

mlw <markw@mohawksoft.com> writes:

I was wondering if there was a way to log the "explain" of a query.

Being a NOTICE, it *is* logged.

Sorry, I didn't make my intentions clear. I mean as a function of normal query
operation.

The debug_print_plan is VERY verbose. Is there an option which does the
equivilent of an EXPLAIN on a submitted query?

For instance, I would like to be able to do something like this:

debug_print_query = true
debug_print_explain = true #my own fictional directive
show_query_stats = true