PostgreSQL for Modern Architectures and AI-Driven Applications

Description

This course explores PostgreSQL 18 as a modern data platform for cloud-native, event-driven, and AI-enabled applications. Participants will move beyond traditional CRUD usage and learn how to use PostgreSQL for modern SQL analytics, JSON and semi-structured data, time-series workloads, message pipelines, full-text search, and AI embeddings.

The course also introduces the PostgreSQL ecosystem, including cloud-managed services and NewSQL/PostgreSQL-compatible distributed databases, helping participants choose the right PostgreSQL-based solution for scalable and resilient architectures. By the end of the course, learners will understand how to design and query PostgreSQL-backed systems that support real-time analytics, search, and AI workflows using native PostgreSQL features.

Indicative Duration: 8 training hours
*Duration is adjusted based on the final scope and the target audience.


Scope

1. PostgreSQL Ecosystem, Cloud & NewSQL Offerings โ€ข PostgreSQL distributions
โ€ข Cloud-managed PostgreSQL
โ€ข NewSQL/PostgreSQL-based distributed databases
โ€ข Key differences: managed vs self-hosted
โ€ข High availability, Replication, Horizontal scaling
โ€ข Choosing the right Postgres product for modern apps and AI workflows
2. Modern PostgreSQL & SQL โ€ข Modern SQL: CTEs
โ€ข Recursive queries
โ€ข Lateral joins
โ€ข Window functions; JSON/JSONB storage & querying; JSON path queries; UPSERT / INSERT ON CONFLICT
3. Time-Series โ€ข Time Series Data
โ€ข Time-series fundamental
โ€ข Partitioning & Hypertables
โ€ข Aggregations & sliding windows using CTEs; BRIN indexes for large sequential datasets
4. Message Queues & Event Pipelines โ€ข Message queues (LISTEN/NOTIFY, event tables)
โ€ข Event sourcing & triggers Feeding pipelines with change data
โ€ข pg_cron for scheduled tasks
5. Full-Text Search & Indexing โ€ข Full-text search (tsvector, tsquery, ranking)
โ€ข Indexing strategies (GIN, GiST, covering indexes)
โ€ข Generated/computed columns for search & analytics
6. AI & Embeddings โ€ข pgvector: storing
โ€ข Indexing & querying embeddings
โ€ข Semantic search + analytics app scenario; Integrating JSON
โ€ข Vectors (pgvector)
โ€ข Full-text search
โ€ข Time-series
โ€ข Events
โ€ข Best practices: Indexing, Partitioning, Replication
โ€ข Using generated columns for AI features

Learning Objectives

Upon completion of the course participants will be able to:

  1. Design and deploy modern PostgreSQL architectures, selecting between managed, self-hosted, and distributed (NewSQL) solutions
  2. Implement advanced SQL features and indexing strategies to support scalable, high-performance applications
  3. Build time-series, event-driven, and full-text search capabilities using native PostgreSQL features
  4. Integrate vector embeddings (pgvector) to enable semantic search and AI-powered data workflows
  5. Apply replication, partitioning, and optimization best practices for production-ready systems

Target Audience

  • Roles: Backend Engineers, Database Engineers, Data Engineers, Solution Architects, AI Engineers
  • Seniority: Mid-Level to Senior Professionals

Prerequisite Knowledge

  • Basic SQL
  • Basic aggregates (COUNT, SUM, AVG)
  • Relational database concepts (Tables, primary keys, foreign keys, indexes, transactions and ACID basics)
  • Basic PostgreSQL familiarity

 

Recommended (but not mandatory):

  • Backend development experience (e.g. familiarity with any backend language (Java, Python, Node.js, etc.)
  • Understanding how applications interact with databases
  • Basic cloud concepts (e.g. managed databases vs self-hosted, containers or cloud services)
  • Data modeling basics, normalization vs denormalization, understanding of time-based data (logs, events, metrics)

Delivery Method

Sessions can be delivered via the following formats:

  • Live Online โ€“ Interactive virtual sessions via video conferencing
  • On-Site โ€“ At your organizationโ€™s premises
  • In-Person โ€“ At Code.Hubโ€™s training center
  • Hybrid โ€“ A combination of online and in-person sessions

 

The training methodology combines presentations, live demonstrations, hands-on exercises and interactive discussions to ensure participants actively practice in realistic work scenarios.