Postgres 19: graph queries, atomic upserts, and online REPACK postgres

Postgres 19: graph queries, atomic upserts, and online REPACK

Postgres 19 adds SQL/PGQ graph queries over the tables you already have, an atomic ON CONFLICT DO SELECT upsert, and REPACK CONCURRENTLY that returns disk space without locking the table. Here is what each one replaces, with working SQL and the limits the release notes do not shout about.

Sep 14, 2026

UUIDv7 from PostgreSQL 18 in practice postgresql

UUIDv7 from PostgreSQL 18 in practice

UUIDv7 arrives in PostgreSQL 18 as a built-in uuidv7() function. See what it changes in practice: friendlier indexes than UUIDv4, simpler Rails migrations, a schema example, and the security caveat that time-ordered does not mean secret.

Jun 1, 2026

How to track and log slow queries in Ruby on Rails applications?

How to track and log slow queries in Ruby on Rails applications?

Slow SQL queries in Rails can be caught in development, before they become production fires. Using ActiveSupport::Notifications and the sql.active_record event, you build a small performance guard that logs every query above a time threshold straight to your console.