DBA Roadmap - Learn To Become A Database Administrator With Postg
DBA Roadmap - Learn To Become A Database Administrator With Postg
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
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
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
Alternatives: Pgpool-II , Odyssey , Pgagroal
Infrastructure monitoring: Prometheus , Zabbix , other favourite monitoring solution
High availability and cluster management tools:
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:
Fine-grained tuning:
Links:
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
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.
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
Stay Informed
Subscribe yourself to get updates, new guides, videos and roadmaps in your inbox.
Subscribe to Updates
Roadmaps
Guides
Videos
Thanks
About
YouTube
roadmap.sh by @kamranahmedse