Re: How to EXPLAIN a trigger function - Mailing list pgsql-general

From Albe Laurenz
Subject Re: How to EXPLAIN a trigger function
Date
Msg-id A737B7A37273E048B164557ADEF4A58B50F92C76@ntex2010i.host.magwien.gv.at
Whole thread Raw
In response to How to EXPLAIN a trigger function  (Zdeněk Bělehrádek<zdenek.belehradek@superhosting.cz>)
Responses Re: How to EXPLAIN a trigger function
Re: How to EXPLAIN a trigger function
List pgsql-general
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

pgsql-general by date:

Previous
From: Zdeněk Bělehrádek
Date:
Subject: How to EXPLAIN a trigger function
Next
From: Tom Lane
Date:
Subject: Re: stack depth