From: | "Marko Kreen" <markokr(at)gmail(dot)com> |
---|---|
To: | "ITAGAKI Takahiro" <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Auto-explain patch |
Date: | 2008-09-02 10:59:04 |
Message-ID: | e51f66da0809020359v7dad7213icde8f5f5af032ecb@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 9/2/08, ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp> wrote:
> "Marko Kreen" <markokr(at)gmail(dot)com> wrote:
> > On 8/28/08, ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Marko Kreen | 2008-09-02 11:07:07 | Out-of-tree compilation seems broken in HEAD (plpgsql) |
Previous Message | Simon Riggs | 2008-09-02 10:56:35 | Re: rmgr hooks and contrib/rmgr_hook |