Re: [GENERAL] How to EXPLAIN a trigger function

2015-08-17 Thread Zdeněk Bělehrádek
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/cu

Re: [GENERAL] How to EXPLAIN a trigger function

2015-08-17 Thread Zdeněk Bělehrádek
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/cu

Re: [GENERAL] How to EXPLAIN a trigger function

2015-08-17 Thread Albe Laurenz
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_stat

[GENERAL] How to EXPLAIN a trigger function

2015-08-17 Thread Zdeněk Bělehrádek
As part of our monitoring system we have a process that on every incomming event inserts a row into a dummy table. This INSERT is intercepted by BEFORE INSERT trigger that checks if the event matches some existing incident, if yes, then it updates the incident data, else it creates a new inciden