Re: Auto-explain patch - Mailing list pgsql-hackers

From Marko Kreen
Subject Re: Auto-explain patch
Date
Msg-id e51f66da0809020359v7dad7213icde8f5f5af032ecb@mail.gmail.com
Whole thread Raw
In response to Re: Auto-explain patch  (ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
List pgsql-hackers
On 9/2/08, ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp> wrote:
>  "Marko Kreen" <markokr@gmail.com> wrote:
>  > On 8/28/08, ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp> wrote:
> > >  You can use shared_preload_libraries or local_preload_libraries to
>  > >  load the module automatically. If you do so, you also need to add
>  > >  "explain" in custom_variable_classes and define explain.* variables
>  > >  in your postgresql.conf.
>  >
>  > Is it possible to use LOAD command to load the module?
>
> Yes, but disabled in default.
>  You need to enable it like:
>
>   LOAD 'auto_explain';
>   SET explain.log_min_duration = '100ms';
>
>   SET explain.log_analyze = true;
>
>   SELECT ...
>
>  In that case, you don't need to define custom_variable_classes.

I was interested if it is possible to enable it for single session.
Seems it is.  Good.

-- 
marko


pgsql-hackers by date:

Previous
From: ITAGAKI Takahiro
Date:
Subject: Re: Auto-explain patch
Next
From: "Marko Kreen"
Date:
Subject: Out-of-tree compilation seems broken in HEAD (plpgsql)