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…
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,…
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…
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');…
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…
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…
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…
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…
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…
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)…