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

Be aware of possible problems with SQLite on Production sqlite

Be aware of possible problems with SQLite on Production

SQLite in production works better than its toy reputation, but only if you know the traps: why WAL mode is non-negotiable, how blue-green deployments break your setup, missing ILIKE, quirky JSON types, and what you honestly gain in return.

Apr 27, 2026

Leveraging JSON in PostgreSQL 17 postgres-17

Leveraging JSON in PostgreSQL 17

PostgreSQL 17 finally implements the SQL/JSON standard: constructors like JSON_OBJECT and JSON_ARRAYAGG, query functions JSON_EXISTS and JSON_QUERY, and the star of the release, JSON_TABLE, which turns JSON into rows, shown on a real IoT data example.

Apr 23, 2025

How to get table size in PostgreSQL database?

How to get table size in PostgreSQL database?

PostgreSQL table size is more than the data: pg_table_size, pg_indexes_size, and pg_total_relation_size each measure different things. One ready SQL query lists every table with data, index, and total size, sorted by the biggest disk consumers first.