From: | Zdeněk Bělehrádek <zdenek(dot)belehradek(at)superhosting(dot)cz> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: How to EXPLAIN a trigger function |
Date: | 2015-08-17 14:30:47 |
Message-ID: | 4198822.xFgQl6ubmC@blue |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Dne Po 17. srpna 2015 13:25:25, Albe Laurenz napsal(a):
> Zdenek Belehrádek wrote:
>
> > We
> > would like to know if there is simple way to EXPLAIN the trigger function,
> > so we could optimize it.
>
>
> I believe that the auto_explain module could help you:
> http://www.postgresql.org/docs/current/static/auto-explain.html
>
> If you turn on "auto_explain.log_nested_statements" and set
> "auto_explain.log_min_duration" low enough, the execution plans of
> all SQL statements calle from a function will be logged.
>
> Yours,
> Laurenz Albe
Oh, sorry, I am an idiot. I totally missed the
auto_explain.log_nested_statements. With it set to true, I am getting the
trigger's EXPLAIN too.
Thank you very much!
--Zdeněk Bělehrádek.
From | Date | Subject | |
---|---|---|---|
Next Message | Wayne E. Seguin | 2015-08-17 16:24:28 | Re: [BDR] vs pgpool-II v3 |
Previous Message | Zdeněk Bělehrádek | 2015-08-17 14:22:21 | Re: How to EXPLAIN a trigger function |