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 🤓

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Postgres on Neon - Get the Free Plan

No credit card required. The database you love, on a serverless platform designed to help you build faster.

Get Postgres on Neon

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay