Featured resource
2026 Tech Forecast
2026 Tech Forecast

1,500+ tech insiders, business leaders, and Pluralsight Authors share their predictions on what’s shifting fastest and how to stay ahead.

Download the forecast

Intermediate PostgreSQL

Course Summary

This course is for those with some experience in working with databases and SQL. Explore advanced data types, functions, and querying techniques, enabling you to work with complex data effectively. Additionally, you will dive into indexing, query optimization, and learn how to monitor database activity to enhance performance. By the end of this course, you will have a deeper understanding of PostgreSQL's capabilities and be proficient in leveraging its features for more sophisticated applications.

Purpose
Gain a deeper understanding of PostgreSQL for working with compex data effectively
Audience
This course is intended for those with some experience working with databases and SQL using PostgreSQL
Role
Business Analysts | Developers | Anyone in a Data Role
Skill level
Intermediate
Style
Lecture | Hands-on Activities | Labs
Duration
3 days
Related technologies
SQL

 

Lesarning Objectives
  • Identify advanced data types, functions, and querying techniques
  • Apply PostgreSQL features for more sophisticated applications

What you'll learn:

In this course, you'll learn:

Review of Basic SQL and Database Concepts

  • Quick overview of PostgreSQL essentials

Understanding Indexes and their Types in PostgreSQL

  • B-Tree, Hash, GiST, GIN, and BRIN indexes
  • When and where to use each index type for optimal performance

Creating and Managing Indexes for Performance

  • Using CREATE INDEX and DROP INDEX commands
  • Analyzing and interpreting index statistics

Analyzing Query Plans and Execution

  • Using EXPLAIN to understand query execution plans
  • Identifying performance bottlenecks in query plans

Monitoring DB Activity and Query Performance

  • Using pg_stat_statements to track query performance
  • Analyzing query performance using pg_stat_activity and pg_stat_progress_* views

Working with Advanced Data Types (JSON, Arrays, HSTORE, etc.)

  • Storing and retrieving JSON data in PostgreSQL
  • Utilizing arrays for efficient data handling
  • Working with the HSTORE data type for key-value pairs

Utilizing Built-in Functions and Creating Custom Functions

  • Overview of commonly used functions (string functions, aggregate functions, etc.)
  • Creating user-defined functions with PL/pgSQL

Introduction to Triggers and their Applications

  • Creating and managing triggers
  • Implementing triggers for automatic data updates and validations

Handling Errors with Exception Blocks

  • Using EXCEPTION blocks for error handling in functions and procedures
  • Understanding error codes and messages in PostgreSQL

Exploring Full-text Search Capabilities in PostgreSQL

  • Configuring and performing full-text searches
  • Using advanced search features for relevance ranking

Understanding PostgreSQL Architecture

  • Overview of PostgreSQL's internal components (Shared buffers, WAL, etc.)
  • How PostgreSQL reads and writes data efficiently

Performance Tuning Techniques

  • Optimizing PostgreSQL configuration for specific workloads
  • Fine-tuning memory settings and other performance-related parameters

Monitoring and Logging

  • Configuring logging for monitoring and troubleshooting
  • Using log data for performance analysis

Understanding VACUUM and ANALYZE for Maintenance

  • Managing dead tuples and reclaiming space with VACUUM
  • Updating statistics with ANALYZE for query optimization

Exploring PostgreSQL Extensions for Additional Functionality

  • Introduction to popular extensions (PostGIS for spatial data, pg_stat_statements for query analysis, etc.)

Dive in and learn more

When transforming your workforce, it’s important to have expert advice and tailored solutions. We can help. Tell us your unique needs and we'll explore ways to address them.

Let's chat

By clicking submit, you agree to our Privacy Policy and Terms of Use, and consent to receive marketing emails from Pluralsight.