From: | ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp> |
---|---|
To: | "Marko Kreen" <markokr(at)gmail(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Auto-explain patch |
Date: | 2008-09-02 10:53:20 |
Message-ID: | 20080902194648.76BE.52131E4D@oss.ntt.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
"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.
Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Riggs | 2008-09-02 10:56:35 | Re: rmgr hooks and contrib/rmgr_hook |
Previous Message | Marko Kreen | 2008-09-02 10:43:46 | Re: Auto-explain patch |