DEV Community

Cover image for How to generate a Aurora Postgresql cluster with all auto explain enabled
özkan pakdil
özkan pakdil

Posted on • Originally published at ozkanpakdil.github.io on

How to generate a Aurora Postgresql cluster with all auto explain enabled

PostgreSQL has query execution plans configured as extension, meaning they do not come out of the box we need to configure it, For on-prem or owning server you can check this link which tells how to configure it. Problem is there are so many steps. And it is confusing for AWS Aurora

I wrote a small bash script Here just to make this work automatic. Here is powershell version

After successful execution you should see the test cluster like below, and you can check logs to see how execution plans are created.

how it looks

And in case you wonder how explain and query plan works in detail you can check the code here study some C 🤓

Top comments (0)