We only want to do this for queries that take longer than some threshold (eg. 5 seconds, or 50% of the soft timeone, or whatever). We don't want query plans for all queries because there might be an awful lot of them, making the whole process slow and consuming gobs of disk space.
EXPLAIN (without analyze) is fast.
We only want to do this for queries that take longer than some threshold (eg. 5 seconds, or 50% of the soft timeone, or whatever). We don't want query plans for all queries because there might be an awful lot of them, making the whole process slow and consuming gobs of disk space.