• Fundamentals & Training
    • Enroll Now in Everything
    • Fundamentals of Select
    • Fundamentals of Index Tuning
    • Fundamentals of Vacuum
    • Fundamentals of Python
    • Download the Stack Overflow Sample Database for Postgres
  • Blog
    • Newsletter Archives
    • Query Exercises
    • Query Exercise Answers
  • About
  • Contact
Enroll Now

I Really Wish PostgreSQL Had Index Hints.

April 29, 2025
I’ve been working with Microsoft SQL Server since the late 1990s, and about a decade ago, I started working with Postgres. I just recently started teaching Postgres index tuning, and…
Learn more

How to Name Your Indexes in Postgres

April 10, 2025
When you create indexes on a table, here are a few simple guidelines to make your life easier down the road. 1. Start the index name with the table name,…
Learn more

How to Use check_indexes to Learn About Your Postgres Database’s Indexes

April 8, 2025
When I’m reviewing a PostgreSQL’s database structure, I often wanna look at one or more tables to understand their current index designs. The check_indexes function in our open source SmartPostgres…
Learn more

How to Use drop_indexes To, Uh, Drop Your Indexes

April 4, 2025
The open source drop_indexes function in our open source Postgres Bag of Tricks (Github) lets you pass in a schema and table, like this: PgSQL select * from drop_indexes('public', 'users');…
Learn more

Announcing Fundamentals of Python: The Course for Data Professionals

March 27, 2025
You work with databases every day. SQL is second nature to you—you can write queries, build indexes, and optimize performance. But the data world is changing, and you’re starting to…
Learn more

Smart Postgres News and Techniques 2025 Vol 5

March 4, 2025
If you need to speed up text searches, and you’re willing to make database schema changes and query changes, then Alex Klibisz explains how to use trigrams. If you’re considering…
Learn more

Smart Postgres News and Techniques 2025 Vol 4

February 25, 2025
If you use Roman numerals like MMXXV, you’ll be thrilled to know that Postgres 18 is adding more support for it as Hubert Lubaczewski explains. Also, I have questions about…
Learn more

Smart Postgres News and Techniques 2025 Vol 3

February 18, 2025
If you want faster reports, Karen Jex gives a good high-level overview of Postgres settings to review. This isn’t about giving you exact setting values, but more about a list…
Learn more

Smart Postgres News and Techniques 2025 Vol 2

February 12, 2025
If you want advice on common performance scale issues, Shayon Mukherjee’s list of problems & solutions is beautifully concise. Seriously, it’s good and straight to the point. If you need…
Learn more
EXPLAIN BUFFERS output

How to Read the Buffers Numbers in Explain Plans

February 11, 2025
You’re tuning a Postgres query and you’ve been told to run EXPLAIN with the BUFFERS option, like this: PgSQL EXPLAIN (ANALYZE, COSTS, VERBOSE, BUFFERS) 1 EXPLAIN (ANALYZE, COSTS, VERBOSE, BUFFERS)…
Learn more
Previous 1 2 3 4 5 … 7 Next

© Smart Postgres, Inc. All rights reserved. For questions, email humans@smartpostgres.com.