DbSchema Blog

Database design, migrations, SQL and everyday database work — explained with practical examples.

SQL tutorial

Learn SQL in your browser

A free SQL tutorial in short lessons on one shop database. Every example runs on real PostgreSQL in your browser, and the page checks your answers.

Migrations 25 Oct 2026

Comparing Two Database Schemas

How to compare two database schemas: a catalog query, a schema-only dump diff and a model compare that writes the migration SQL, tested on PostgreSQL 16.

Migrations 25 Oct 2026

Putting a Database Schema in Git

Database schema version control with Git: keep the schema as a text model file, review its diffs, merge branches and sync the change into the database.

Design 25 Oct 2026

Reviewing an AI-Proposed Schema Change

Review an AI-proposed schema change before it runs: what the DbSchema AI Assistant saw, what it missed, and how to test it in the model first.

Postgresql 25 Oct 2026

Reverse Engineering a PostgreSQL Database

Reverse engineer a PostgreSQL database into an ER diagram: what pg_catalog holds, the psql route, DbSchema over JDBC, virtual foreign keys and a schema check.

Postgresql 25 Oct 2026

A Visual Query Builder for PostgreSQL

How DbSchema's visual query builder writes PostgreSQL joins for you, where it stops at recursive queries, and how to write and guard WITH RECURSIVE.