Blog

PostgreSQL Quickstart Administrator Guide

Michael Patrick McCoy

If you're new to PostgreSQL, the basics can feel intimidating. This guide walks you through essential tasks every beginner should know: starting and stopping PostgreSQL, finding configuration files, connecting with psql, and performing simple administrative commands.


Read More

Many Single-Column Indexes vs One Multi-Column Index

Michael Patrick McCoy

Indexing is one of the most misunderstood areas of PostgreSQL performance tuning. Developers often assume that “more indexes = faster queries.” This article explains when multiple single-column indexes make sense, when a multi-column index is better, and how PostgreSQL decides.


Read More

When To Use A Join vs Subquery

Michael Patrick McCoy

Choosing between a JOIN and a subquery is one of the most common points of confusion for SQL developers. Both approaches let you combine data from multiple tables, and often either one will work — but the right choice can improve clarity, performance, and maintainability.


Read More

What Is A CTE? The Best Explanation On The Internet

Michael Patrick McCoy

Common Table Expressions (CTEs) are one of the most useful, least understood features in SQL. Beginners often think they’re “just subqueries with a nicer syntax,” but CTEs are far more powerful than that. This article gives the clearest explanation of what a CTE truly is.


Read More

Installing the Pagila Sample Database on PostgreSQL

Michael Patrick McCoy

The Pagila sample database is a popular PostgreSQL training database modeled after a movie rental store. It includes tables for films, actors, customers, rentals, staff, payments, and more. This makes it perfect for learning PostgreSQL!


Read More

Understanding PostgreSQL File Structure: A Lay of the Land

Michael Patrick McCoy

We’ll take a tour of the PostgreSQL data directory structure, explaining the purpose of key files and folders that make up a PostgreSQL database cluster.


Read More