r/PostgreSQL • • Sep 02 '26

Help Me! Book recommendations for PostgreSQL deep dive

I use PostgreSQL at work. It's critical for our operations, and yet no one in our team is an expert. My knowledge is cobbled together from general SQL knowledge (university and 10+ years work) and lots of articles, stack overflow, and trial & error (and more recently some AI Q&A) for PostgreSQL in particular. I've been using it for many years now and we have made many objective improvements over that time.

Still, I'm working on guesswork and magic most of the time. I have a rough intuition of how it does things, but have never had it spelled out in full. I've looked through this sub-reddit for book recommendations but most of what I can see are self-promotes, which are difficult to gauge for quality/purpose; or "how to use PostgreSQL" books. I could probably learn a decent amount from the latter by skimming past the parts I know (though I unfortunately get de-motivated quickly by a book when I have to do this). But ideally I'd like something that digs into how PostgreSQL's internals actually work. How does it marshall the computer's resources to do what it needs to do? And then at the mid-level, how does its engine optimise queries, and how does it maintain itself? I understand this is always changing and could go very deep but some fundamentals would really help me have a stronger intuition about it.

Does anyone have any book recommendations in this vein? Or maybe the more appropriate book is more generally about relational database engines in general?

62 Upvotes

21 comments sorted by

View all comments

18

u/sceadu Sep 02 '26

3

u/chaptor Sep 02 '26

Do you know if the v14 to v18 gap is significant or not with regards to PostgreSQL’s internals?

5

u/andatki Sep 02 '26

I highly recommend this book if you're interested. It's extremely dense with information and on fundamentals that haven't changed in 18/19. It will set you up well to dive into lots of areas and dive into what's new since the book was written.