Re: [PATCH] Include triggers in EXPLAIN

2019-11-04 Thread Andres Freund
Hi, (minor note - on PG lists the style is to quote in-line and trip) On 2019-11-04 10:35:25 +0100, Josef Šimánek wrote: > Thanks for quick response. As I was testing this feature it shows all > "possible" triggers to be executed running given query. The benefit of > having this information in EX

Re: [PATCH] Include triggers in EXPLAIN

2019-11-04 Thread Josef Šimánek
Hello Tom. Thanks for quick response. As I was testing this feature it shows all "possible" triggers to be executed running given query. The benefit of having this information in EXPLAIN as well is you do not need to execute the query (as EXPLAIN ANALYZE does). My usecase is to take a look at quer

Re: [PATCH] Include triggers in EXPLAIN

2019-11-03 Thread Tom Lane
=?UTF-8?B?Sm9zZWYgxaBpbcOhbmVr?= writes: > Recently I got few times into situation where I was trying to find out what > is blocking DELETE queries. Running EXPLAIN (even VERBOSE one) wasn't > useful, since the reason was slow trigger (missing index on foreign key > column). I had to create testin

[PATCH] Include triggers in EXPLAIN

2019-11-03 Thread Josef Šimánek
Hello! Recently I got few times into situation where I was trying to find out what is blocking DELETE queries. Running EXPLAIN (even VERBOSE one) wasn't useful, since the reason was slow trigger (missing index on foreign key column). I had to create testing entry and run EXPLAIN ANALYZE DELETE to