Introduction Today I have an interesting tale of victory after PostgreSQL rejected our attempts to optimize a query. We had a query we were observing that was growing in latency. We analyzed it and determined the best course of action was to add an i...

Markdown supported · ⌘↵ to post
Great writeup! My team ran into a similar situation at work.
For the key point of:
I'd suggest linking the documentation reference; I believe it may be the Postgres doc on "routine vacuuming" (sorry for not including a link - the platform won't allow me to as a new user).
If there's a single takeaway, it might be "if you add an index to an existing database, run ANALYZE after."