Setting PostgreSQL memory for your hardware and workload: the shared_buffers starting point, per-operation work_mem and hash_mem_multiplier, maintenance_work_mem, effective_cache_size and avoiding out-of-memory under concurrency.
Keeping autovacuum ahead of write-heavy tables: scale factors and thresholds per table, cost limits and worker counts, freeze settings, logging slow autovacuum runs and spotting tables it never finishes.
Diagnosing slow queries from their plans: estimated versus actual rows, buffers and timing, nested loop and hash join choices, and the fixes that follow, from indexes and statistics to query rewrites.
Picking the right index for each access pattern: B-tree defaults, GIN for jsonb and full-text, GiST and SP-GiST for ranges and geometry, BRIN for huge append-only tables, partial and covering indexes, and removing unused ones.
Ranking queries by total and mean time with pg_stat_statements: enabling it, query IDs, resetting statistics, planning versus execution time and turning the top entries into a tuning backlog.
Smoothing write I/O by tuning checkpoints: max_wal_size and checkpoint_timeout, checkpoint_completion_target, full-page write costs, WAL compression and the crash recovery time trade-off.
Running PgBouncer in transaction mode without breaking applications: session features that stop working, max_prepared_statements for drivers that use protocol-level prepared statements, pool sizing and recent security fixes.
What PostgreSQL 18's asynchronous I/O changes for read-heavy workloads: io_method worker, io_uring and sync, io_workers, combining limits, and how to benchmark before and after an upgrade.
Preparing Linux hosts for PostgreSQL: sizing huge pages from shared_memory_size_in_huge_pages, strict overcommit and OOM score settings for the postmaster, dirty page writeback, and storage write cache safety.
When correlated columns mislead the planner: CREATE STATISTICS for dependencies, n-distinct and MCV lists, raising per-column statistics targets, and checking the effect in EXPLAIN.
Getting analytical queries to use parallel workers: max_parallel_workers_per_gather and related limits, why plans stay serial, parallel index builds and the effect on concurrent OLTP traffic.
Load testing PostgreSQL before go-live or an upgrade: pgbench's built-in TPC-B-like test and its limits, custom scripts that mirror your workload, client and thread counts and reading latency results.
What an outside PostgreSQL performance review covers: configuration and hardware checks, top queries from pg_stat_statements, index and bloat analysis, connection handling, and a prioritized fix list with expected effect.