Postgresql Dba: Learn Basic Rdbms Terms and Concepts
Postgresql Dba: Learn Basic Rdbms Terms and Concepts
roadmap.sh
PostgreSQL DBA
Step by step guide to becoming a modern PostgreSQL DB Administrator in 2022
← Subscribe
The intent of this guide is to give you an idea about the DBA landscape and to help guide your
learning if you are confused. The roadmap is highly opinionated — neither, knowing everything
listed in the roadmap, nor the order of items given in the roadmap is required to be followed in
order to be a DBA.
Object model: data types, columns, rows, tables, schemas, databases, queries.
Relational model: domains, attributes, tuples, relations, constraints, NULL.
Databases high-level concepts: ACID, MVCC, transactions, write-ahead log, query
processing.
Links:
Postgres Glossary
SQL and Relational Theory - Christopher J. Date, 2009
Database Design and Relational Theory - Christopher J. Date, 2012
https://roadmap.sh/postgresql-dba 1/8
19/07/2022 23:51 DBA Roadmap: Learn to become a database administrator with PostgreSQL
Advanced topics: transactions, CTE, subqueries, lateral join, grouping, set operations.
DB Fiddle
PostgreSQL Tutorial
PostgreSQL SQL Getting Started
The SQL Language
postgresql.conf:
Resources usage
Write-ahead Log
Checkpoints and Background Writer
Cost-based vacuum and auto-vacuum
Replication
https://roadmap.sh/postgresql-dba 2/8
19/07/2022 23:51 DBA Roadmap: Learn to become a database administrator with PostgreSQL
Query planner
Reporting, logging and statistics
Adding extra extensions
...keep exploring other configuration options
Links:
Postgresqlco.nf
Client authentication
Roles and users managements
Upgrading procedures
Connection pooling:
Pgbouncer
https://roadmap.sh/postgresql-dba 3/8
19/07/2022 23:51 DBA Roadmap: Learn to become a database administrator with PostgreSQL
Patroni
Alternatives: Repmgr , Stolon , pg_auto_failover , PAF
Automation using shell scripts or any other favourite language ( Bash , Python , Perl ,
etc)
Configuration management: Ansible , Salt , Chef , Puppet
Migrations:
https://roadmap.sh/postgresql-dba 4/8
19/07/2022 23:51 DBA Roadmap: Learn to become a database administrator with PostgreSQL
Fine-grained tuning:
Links:
iotop
pg_stat_activity
pg_stat_statements
Postgres tools
Query analyzing:
EXPLAIN
Depesz online EXPLAIN visualization tool
PEV online EXPLAIN visualization tool
Tensor online EXPLAIN visualization tool, RU language only
Log analyzing:
pgBadger
Ad-hoc analyzing using grep , awk , sed , etc.
Indexes, and their use cases: B-tree, Hash, GiST, SP-GiST, GIN, BRIN
SQL queries patterns and anti-patterns
SQL schema design patterns and anti-patterns
Links:
Books:
SQL Antipatterns: Avoiding the Pitfalls of Database Programming - Bill Karwin, 2010
Get deeper understanding of Postgres use cases and where Postgres is suitable and where is not.
pgsql-general
pgsql-admin
pgsql-performance
pgsql-hackers
pgsql-bugs
Reviewing patches
Writing patches, attending in Commitfests
Open Source
The project is OpenSource, 7th most starred project on GitHub and is visited by hundreds of
thousands of developers every month.
Star 202,177
A considerable amount of my time is spent doing unpaid community work on things that I hope will
help humanity in some way. Your sponsorship helps me continue to produce more open-source and
free educational material consumed by hundreds of thousands of developers every month.
Sponsor @kamranahmedse
https://roadmap.sh/postgresql-dba 7/8