We have a number of Postgres Functions that each call a number of other Postgres Functions. If you simply EXPLAIN ANALYSE a call like SELECT parent_function(), the output is minimal, since it doesn't ...

I've got a monster query, which runs quite quick in many cases, but in some cases very much slower.
The EXPLAIN output below is from one of the slow cases.
I'm guessing that the slowdown is related ...