The JusDB Database Engineering Blog
Deep dives on PostgreSQL, MySQL, MongoDB and more — performance tuning, high availability, migrations and production war stories from our DBAs.
Popular Searches
Latest Articles
Showing 4 of 4 articles
PostgreSQL Lock Waits: How to Find the Blocking Query and Fix It
Find the session behind a PostgreSQL lock wait with pg_blocking_pids, see why a waiting ALTER TABLE stalls every SELECT, and choose between cancel, terminate, and timeouts.
PostgreSQL Advisory Locks: Patterns and Pitfalls
Use PostgreSQL advisory locks safely: session vs transaction locks, key choice, singleton jobs, leader election, and the PgBouncer, LIMIT, and lock-table traps.
PostgreSQL BRIN Indexes for Time-Ordered Tables
Decide when a BRIN index can replace a B-tree on a time-ordered PostgreSQL table: check correlation, choose pages_per_range and an operator class, and roll it out safely.
PostgreSQL pg_stat_io: Reading I/O by Backend Type
Use pg_stat_io in PostgreSQL 16 to 18 to see whether client backends or the checkpointer do the writes, and to measure ring buffer, vacuum, extend, and WAL I/O.
Get the latest database insights and expert tips delivered to your inbox.
Subscribe to our RSS feed for instant updates.
RSS Feed