Choose your language
PostgreSQL DBA Course
More than 2 million learners worldwide

PostgreSQL DBA Course

Master every critical responsibility of a production PostgreSQL DBA, from installation and security to replication, backup, and query optimization. This course delivers hands-on lab work across real-world scenarios so you build skills you can apply immediately. Whether you're stepping into a DBA role or leveling up an existing one, this is the most complete PostgreSQL administration training available.

Dedika for businesses

What you will learn:

You will learn how to configure and tune PostgreSQL for production workloads, implement role-based access control and row-level security, and set up streaming and logical replication with automated failover. The course covers backup strategies using pg_dump and pg_basebackup, WAL archiving, and point-in-time recovery procedures you will execute end-to-end. You will diagnose slow queries by reading execution plans, analyzing lock contention, and using pg_stat_statements. Routine maintenance topics include autovacuum tuning, bloat management, and transaction ID wraparound prevention. You will also explore partitioning, extensions like PostGIS and TimescaleDB, monitoring with Prometheus and Grafana, and major version upgrade paths.

How you study in a practical way PostgreSQL DBA Course

How you practice PostgreSQL DBA Course

For companies who want to train their team

With Dedika for businesses, the course includes exercises and examples tailored to your own business and the way your company needs.

Click here

Course content

8 Chapters • 40 LessonsDuration between 4 and 360 hours (you decide)

Chapter 1See details

PostgreSQL Architecture and Installation

  • Lesson 1 • Starting, Stopping, and Reloading the Server

    Covers pg_ctl, systemd service management, and signal-based control. Students practice safe server lifecycle operations used in every DBA workflow.

  • Lesson 2 • Relational Database Core Concepts

    Covers RDBMS principles, ACID properties, and how PostgreSQL fits the relational model. Provides the conceptual baseline for all subsequent administration topics.

  • Lesson 3 • Directory Layout and Key Files

    Maps the data directory structure, configuration files, and log locations. Familiarity with file layout is essential for configuration and recovery tasks.

  • Lesson 4 • PostgreSQL Process and Memory Architecture

    Examines postmaster, backend processes, shared buffers, and WAL. Understanding these internals guides tuning and troubleshooting decisions throughout the course.

  • Lesson 5 • Installing PostgreSQL on Linux

    Guides package-based and source installation on Linux systems. Students produce a running, version-verified PostgreSQL instance as the lab environment.

Chapter 2See details

Database Objects and SQL Fundamentals

  • Lesson 1 • Databases, Schemas, and Tablespaces

    Explains the three-level namespace hierarchy and tablespace storage mapping. Proper namespace design prevents object conflicts and supports storage management.

  • Lesson 2 • Sequences and Identity Columns

    Explains sequence objects and the GENERATED AS IDENTITY syntax for surrogate keys. Students configure auto-incrementing columns correctly for production schemas.

  • Lesson 3 • Views, Materialized Views, and Functions

    Introduces read-only and updatable views, materialized view refresh, and basic PL/pgSQL functions. These objects encapsulate logic and simplify application interfaces.

  • Lesson 4 • Index Types and Usage

    Surveys B-tree, Hash, GIN, GiST, and BRIN indexes and their appropriate use cases. Index selection directly affects query performance covered in later chapters.

  • Lesson 5 • Tables, Data Types, and Constraints

    Covers DDL for tables, PostgreSQL-specific data types, and declarative constraints. Correct type and constraint selection enforces data integrity at the storage layer.

Chapter 3See details

User Management and Access Control

  • Lesson 1 • Object-Level Privilege Management

    Explains GRANT and REVOKE on tables, schemas, sequences, and functions. Students apply the principle of least privilege across a realistic multi-schema database.

  • Lesson 2 • Roles and Role Attributes

    Covers CREATE ROLE, LOGIN, SUPERUSER, and CREATEDB attributes. Role design is the foundation of every privilege and authentication decision in PostgreSQL.

  • Lesson 3 • Row-Level Security Policies

    Introduces RLS policy creation, USING and WITH CHECK clauses, and policy testing. RLS enforces data isolation without requiring application-layer filtering logic.

  • Lesson 4 • Auditing and Security Hardening

    Covers pgaudit extension, connection logging, and hardening parameters. Students produce an audit-ready configuration aligned with common security standards.

  • Lesson 5 • Authentication Methods in pg_hba.conf

    Covers trust, md5, scram-sha-256, peer, and certificate authentication methods. Correct pg_hba.conf configuration is critical for both security and connectivity.

Chapter 4See details

Configuration and Performance Tuning

  • Lesson 1 • Query Planner Cost Parameters

    Explains seq_page_cost, random_page_cost, cpu_tuple_cost, and statistics targets. Accurate cost parameters enable the planner to choose optimal execution plans.

  • Lesson 2 • WAL and Checkpoint Tuning

    Covers wal_buffers, checkpoint_completion_target, max_wal_size, and fsync settings. WAL tuning balances write throughput against crash-recovery durability guarantees.

  • Lesson 3 • Memory Configuration Parameters

    Explains shared_buffers, work_mem, maintenance_work_mem, and effective_cache_size. Correct memory allocation is the highest-impact tuning lever for most workloads.

  • Lesson 4 • OS-Level Tuning for PostgreSQL

    Addresses kernel parameters, I/O scheduler selection, NUMA, and transparent huge pages. OS configuration often limits gains achievable through PostgreSQL parameters alone.

  • Lesson 5 • Connection and Resource Management

    Covers max_connections, connection pooling with PgBouncer, and resource groups. Uncontrolled connections exhaust memory and degrade throughput under load.

Chapter 5See details

Routine Maintenance and VACUUM

  • Lesson 1 • VACUUM and VACUUM FULL

    Covers manual VACUUM, VACUUM FULL, and VACUUM ANALYZE syntax and effects. Students distinguish when each form is appropriate without causing unnecessary locking.

  • Lesson 2 • MVCC and Table Bloat Mechanics

    Explains how MVCC creates dead tuples and page bloat over time. Understanding MVCC is prerequisite to designing effective VACUUM and autovacuum strategies.

  • Lesson 3 • Transaction ID Wraparound Prevention

    Covers XID age monitoring, autovacuum_freeze_max_age, and emergency VACUUM. Wraparound failure causes total database unavailability and must be actively prevented.

  • Lesson 4 • Index Maintenance and REINDEX

    Covers index bloat detection, REINDEX CONCURRENTLY, and pg_stat_user_indexes. Regular index maintenance preserves query performance without requiring table rewrites.

  • Lesson 5 • Autovacuum Configuration and Tuning

    Explains autovacuum_vacuum_scale_factor, cost delay, and per-table storage parameters. Properly tuned autovacuum eliminates most manual maintenance requirements.

Chapter 6See details

Backup, Recovery, and Point-in-Time Restore

  • Lesson 1 • Logical Backup with pg_dump

    Covers pg_dump formats, pg_dumpall, parallel dumps, and selective restore with pg_restore. Logical backups enable object-level recovery and cross-version migration.

  • Lesson 2 • Physical Backup with pg_basebackup

    Explains streaming base backups, checkpoint modes, and WAL inclusion options. Physical backups are the foundation of PITR and standby server provisioning.

  • Lesson 3 • Point-in-Time Recovery Procedure

    Guides restore from base backup, recovery.conf or postgresql.conf parameters, and target specification. Students execute and verify a complete PITR scenario end-to-end.

  • Lesson 4 • WAL Archiving Configuration

    Covers archive_mode, archive_command, and archive_cleanup_command setup. Continuous WAL archiving enables recovery to any point after the base backup.

  • Lesson 5 • Backup Validation and Retention Policy

    Covers pg_verifybackup, restore testing schedules, and WAL retention sizing. Unvalidated backups provide false confidence and must be tested regularly.

Chapter 7See details

Replication and High Availability

  • Lesson 1 • Failover and Patroni-Based HA

    Covers manual promotion, pg_ctl promote, and automated HA with Patroni and etcd. Students simulate a primary failure and verify automatic failover completes correctly.

  • Lesson 2 • Logical Replication Fundamentals

    Explains publications, subscriptions, and row filtering for selective replication. Logical replication supports cross-version upgrades and partial data distribution.

  • Lesson 3 • Streaming Replication Setup

    Covers replication slots, pg_hba.conf replication entries, and primary_conninfo. Students build a working streaming standby from a live primary server.

  • Lesson 4 • Monitoring Replication Lag

    Explains pg_stat_replication, pg_stat_wal_receiver, and LSN-based lag calculation. Lag monitoring is essential for SLA compliance and failover decision-making.

  • Lesson 5 • Synchronous Replication and Quorum

    Covers synchronous_standby_names, FIRST and ANY quorum modes, and durability trade-offs. Synchronous replication eliminates data loss at the cost of write latency.

Chapter 8See details

Query Optimization and Advanced Diagnostics

  • Lesson 1 • Statistics and Planner Accuracy

    Covers pg_statistic, ANALYZE, extended statistics, and histogram interpretation. Stale or insufficient statistics cause the planner to choose suboptimal execution plans.

  • Lesson 2 • Join Strategies and Plan Hints

    Explains nested loop, hash join, and merge join selection criteria and forcing techniques. Join strategy mismatches are a leading cause of severe query performance regressions.

  • Lesson 3 • Identifying Slow Queries with pg_stat_statements

    Covers pg_stat_statements installation, key columns, and query normalization. Aggregate workload data reveals the highest-impact queries to prioritize for optimization.

  • Lesson 4 • Reading EXPLAIN and EXPLAIN ANALYZE

    Decodes plan nodes, cost estimates, actual rows, and timing output from EXPLAIN. Accurate plan reading is the prerequisite skill for every query optimization technique.

  • Lesson 5 • Lock Contention and Deadlock Analysis

    Explains lock modes, pg_locks, pg_stat_activity, and deadlock log interpretation. Lock contention causes latency spikes and must be diagnosed before tuning queries.

Certification

Your valid completion certificate

This course is for you:

  • Backend developers: ready to take responsibility for the databases powering their applications.

  • Linux system administrators: expanding their skill set into database infrastructure management.

  • Junior DBAs: seeking structured depth beyond what on-the-job exposure has provided.

  • DevOps engineers: needing to manage PostgreSQL clusters alongside their infrastructure automation work.

  • Career changers: moving from spreadsheet-heavy roles into data engineering or database administration.

  • Data analysts: wanting to understand the server layer behind the queries they run daily.

What our students say

Your classes are perfect. I purchased the one-year package and finally have the opportunity to follow various topics of my interest without needing to change platforms... I thank you for everything you do, I've already recommended you to other people...
Giulio Carlo
Giulio CarloDigital Marketing Student
I like how the lessons are straight to the point and how I can switch chapters and skip content I don't need.
Mariana Ferres
Mariana FerresPhotography Student
I like the content and the way videos are presented and transcribed, which speeds up the process!
Luciana Alvarenga
Luciana AlvarengaNail Design Student
The platform is fast, simple to use. The diversity of content and complementary videos really help with learning.
André Felipe
André FelipePrompt Engineering Student

Top trainings

FAQs

Who is Dedika?

Is the certificate valid in the Philippines?

Are the courses free?

What is the course workload?

What are the courses like?

How do the courses work?

What is the duration of the courses?

What is the cost or price of the courses?

What is an EAD or online course and how does it work?

PDF Course