Available learning path
PostgreSQL · DML · Administration
PostgreSQL Pro
Structure, modify, automate, secure and optimise a PostgreSQL database in an isolated laboratory.
Prerequisites
Master SQL Foundations and read a multi-step analytical query.
Syllabus
8 structured lessons
- 01Access required →
Impose integrity with constraints
Choose between type, NOT NULL, UNIQUE, CHECK, PRIMARY KEY and FOREIGN KEY.
34 min · Related practice: Guarantee integrity with real constraints - 02Access required →
Modify data with a secure DML
Master INSERT, UPDATE, DELETE and UPSERT with a controlled perimeter.
36 min · Related practice: Edit data without losing control - 03Access required →
Protect an operation with transactions
Use COMMIT, ROLLBACK and SAVEPOINT by understanding the competition.
40 min · Related practice: Secure an operation with transactions - 04Access required →
Reuse logic with views and materialized views
Choose between always fresh result and pre-calculated result.
34 min · Related practice: Create and maintain reliable views - 05Access required →
Accelerate with indexes and read EXPLAIN
Link an index to a real query and measure its cost.
42 min · Related practice: Choose an index and read EXPLAIN - 06Access required →
Encapsulate logic with functions and procedures
Choose a reusable object without hiding logic unnecessarily.
42 min · Related practice: Write testable PostgreSQL functions - 07Access required →
Automate an audit with triggers
Use OLD, NEW, BEFORE, and AFTER without creating invisible logic.
45 min · Related practice: Automate an audit with triggers - 08Access required →
Control access with roles and permissions
Enforce least privilege with GRANT, REVOKE, and group roles.
38 min · Related practice: Test roles and permissions positively and negatively