Module · 7 lessons

PostgreSQL for Data Engineers

Step up from analysis to engineering — install PostgreSQL, design typed tables, load data safely, and manage users and databases.

At a glance

Level
Intermediate
Lessons
7 lessons
Time to complete
2–3 weeks
Cost
Free forever · no sign-up

Welcome to PostgreSQL for Data Engineers — the module where you graduate from querying data to engineering the systems that store it. SQLite was a wonderful place to learn SQL: everything lived in a single portable file. But real organizations need a database that thousands of analysts, scientists, and applications can connect to at once. That database is almost always PostgreSQL.

Throughout this module you will work like a data engineer. You will connect to a Postgres server from Python using the psycopg2 library, create tables with carefully chosen data types that save space and catch bad data, write parameterized queries that defend against SQL injection, and bulk-load real CSV files into your tables using the fastest available methods. You will also learn the human side of databases: creating users and groups, granting just the privileges each role needs, and spinning up separate databases for separate applications.

Every concept is hands-on and built on real datasets — randomly generated user accounts, a catalog of IGN game reviews, and a database of Boston crime reports. You will read actual query output and error messages, because reading an error well is half the job of a data engineer.

No prior Postgres experience is required, only comfort with basic SQL and a little Python. Start with Lesson 1, where you will meet PostgreSQL, see exactly how it differs from SQLite, and connect to your first Postgres database.

Lessons in this module

Achievement

Complete all 7 lessons to finish the PostgreSQL for Data Engineers module.

Start module