Ryan Lambert gets a lot of explanation:
Postgres has a handy module called
auto_explain
. Theauto_explain
module lives up to its name: it runsEXPLAIN
automatically for you. The intent for this module is to automatically provide information useful for troubleshooting about your slow queries as they happen. This post outlines a pitfall I recently discovered withauto_explain
. Luckily for us, it’s an easy thing to avoid.I discovered this by running
CREATE EXTENSION postgis;
and watching it run for quite a while before failing with an out of disk space error. That is not my typical experience with a simpleCREATE EXTENSION
command!
Read on to learn what happened and how you can prevent making a similar mistake.