Denis Magda

#Postgres
#PostgreSQL
#SQL
#RDBMS
#GIN
#GiST
#HNSW
#AI
🧩 فقط از Postgres استفاده کن!
شاید اصلاً لازم نباشه کلی دیتابیس تخصصی مختلف جمع کنی—کافیه فقط از Postgres استفاده کنی!
🚀 این کتاب برای توسعهدهندههای اپلیکیشن و متخصصان دیتابیس نوشته شده و نشونت میده چطور میتونی نهایت بهره رو از قدرت واقعی Postgres ببری.
📘 در کتاب Just Use Postgres! یاد میگیری که چطور:
⚙️ از Postgres بهعنوان یه RDBMS استاندارد برای پردازش تراکنشها استفاده کنی
🧠 اپلیکیشنهایی برای هوش مصنوعی مولد (Generative AI)، دادههای مکانی (Geospatial) و سریهای زمانی (Time Series) توسعه بدی
🧾 از SQL مدرن شامل تابعهای پنجرهای (Window Functions) و CTEها استفاده کنی
🔍 جستجوی متنی پیشرفته (Full-Text Search) و پردازش اسناد JSON انجام بدی
📩 از Postgres بهعنوان صف پیام (Message Queue) بهره ببری
🧮 عملکرد رو با انواع مختلف ایندکسها مثل B-Tree، GIN، GiST، HNSW و موارد دیگه بهینهسازی کنی
🧠 درباره فناوری:
در چند دههی گذشته، PostgreSQL یا همون Postgres، تبدیل شده به قدرتمندترین دیتابیس چندمنظوره در دنیا و به نوعی استاندارد جهانی بین توسعهدهندهها.
کتاب Just Use Postgres! یه نگاه تازه و مدرن به قابلیتهای امروز این دیتابیس داره؛ از هوش مصنوعی و دادههای مکانی گرفته تا جستجوی متنی و دادههای سری زمانی.
✍️ پیشگفتار توسط جاش لانگ
📖 پسگفتار توسط ولاد میهالچهآ
💡 چرا Postgres خودش کافیه؟
شاید بدونی PostgreSQL یه RDBMS سریع، مطمئن و همخوان با استانداردهای SQLه…
ولی احتمالاً نمیدونی چقدر تو زمینههایی مثل Geospatial، Time Series، Full-Text Search، JSON Documentها، و Vector Embeddingهای AI هم فوقالعادهست.
تقریباً هر کاری با دادهها بخوای بکنی، یه راه با Postgres وجود داره.
📚 درباره کتاب:
کتاب Just Use Postgres! مجموعهای از دستورالعملها و کاربردهای واقعی رو پوشش میده که معمولاً برای دیتابیسهای تخصصی طراحی میشن — اما اینجا نشون میده چطور همه رو با خود Postgres انجام بدی.
برای برنامهنویسهای پرمشغله طراحی شده تا هر فصلش روی یه کاربرد واقعی تمرکز کنه و تواناییهای Postgres رو به سبک واقعی و تمرینی نشونت بده.
در طول مسیر با اکوسیستم قدرتمند افزونههای Postgres آشنا میشی مثل:
🔹 pgvector برای هوش مصنوعی و Embedding
🔹 PostGIS برای دادههای مکانی
🔹 pgmq برای صف پیامها
🔹 TimescaleDB برای دادههای سری زمانی
و واقعاً حیرتزده میشی از اینکه Postgres تا کجا میتونه جلو بره!
🧠 محتوای اصلی کتاب:
👩💻 مخاطب هدف:
مناسب برای توسعهدهندههای اپلیکیشن، مهندسان نرمافزار، و معماران سیستم که با مفاهیم پایهی SQL آشنا هستند.
👨🏫 درباره نویسنده – دنیس مگدا (Denis Magda):
مهندس نرمافزار و متخصص شناختهشدهی Postgres است.
او پیشتر در شرکتهای Sun Microsystems و Oracle روی پلتفرم Java کار کرده و یکی از مدیران تیم توسعهی جاوا بوده. بعد از تسلط کامل بر جاوا، مسیر حرفهایش رو به سمت بانکهای اطلاعاتی و سیستمهای توزیعشده در مقیاس بزرگ تغییر داده و تا امروز در همین حوزه فعال است.
📑 فهرست مطالب کتاب:
بخش 1: Postgres بهعنوان دیتابیس رابطهای (Relational Database)
بخش 2: قابلیتهای اصلی فراتر از مدل رابطهای
بخش 3: افزونهها و اکوسیستم گستردهی Postgres
ضمیمهها
A. پنج نکتهی بهینهسازی عملکرد
B. زمانی که نباید از Postgres استفاده کرد
✨ خلاصهی مهندسی:
اگه تا حالا برای هر کاربرد یه دیتابیس جدا انتخاب میکردی، این کتاب نشونت میده لازم نیست اینکارو بکنی.
— از تراکنش تا بردار هوش مصنوعی. فقط از Postgres استفاده کن!
You probably don’t need a collection of specialty databases. Just use Postgres instead!
Written for application developers and database pros, Just Use Postgres! shows you how to get the most out of the powerful Postgres database.
In Just Use Postgres! you’ll learn how to:
• Use Postgres as an RDBMS for transactional workloads
• Develop generative AI, geospatial, and time-series applications
• Take advantage of modern SQL including window functions and CTEs
• Perform full-text search and process JSON documents
• Use Postgres as a message queue
• Optimize performance with various index types including B-trees, GIN, GiST, HNSW, and more
Over the decades, PostgreSQL, aka Postgres, has grown into the most powerful general-purpose database and has become the de facto standard for developers worldwide. Just Use Postgres! takes a modern look at Postgres, exploring the database’s most up-to-date features for AI, time-series, full-text search, geospatial, and other application workloads.
Foreword by Josh Long. Afterword by Vlad Mihalcea.
About the technology
You know that PostgreSQL is a fast, reliable, SQL compliant RDBMS. You may not know that it’s also great for geospatial systems, time series, full-text search, JSON documents, AI vector embeddings, and many other specialty database functions. For almost any data task you can imagine, you can use Postgres.
About the book
Just Use Postgres! covers recipes for using Postgres in dozens of applications normally reserved for single-purpose databases. Written for busy application developers, each chapter explores a different use case illuminating the breadth and depth of Postgres’s capabilities. Along the way, you’ll also meet an incredible ecosystem of Postgres extensions like pgvector, PostGIS, pgmq, and TimescaleDB. You’ll be amazed at everything you can accomplish with Postgres!
What's inside
• Generative AI, geospatial, and time-series applications
• Modern SQL including window functions and CTEs
• Full-text search and JSON
• B-trees, GIN, GiST, HNSW, and more
About the reader
For application developers, software engineers, and architects who know the basics of SQL.
About the author
Denis Magda is a recognized Postgres expert and software engineer who worked on Java at Sun Microsystems and Oracle before focusing on databases and large-scale distributed systems.
Table of Contents
Part 1. Postgres as a relational database
1. Meeting Postgres
2. Standard RDBMS capabilities
3. Modern SQL
4. Indexes
Part 2. Core Postgres beyond relational
5. Postgres and JSON
6. Postgres for full-text search
Part 3. Extensions and the broader ecosystem
7. Postgres extensions
8. Postgres for generative AI
9. Postgres for time series
10. Postgres for geospatial data
11. Postgres as a message queue
Appendixes
A. Five optimization tips
B. When not to use Postgres
About the Author
Denis Magda is a software engineer who started his career at Sun Microsystems and Oracle, working on the Java platform and leading one of the Java development teams. After mastering Java from the inside, he ventured into the world of Postgres and other databases, where he has stayed ever since.









