#789·migrate

Tutorial contradicts actual migration documentation in reference to transactions

Author: jackgeneCreated Aug 5, 2022Updated Jul 28, 2026

Describe the Bug In the Postgres tutorial, on the subject of Database Transactions, it seems to be implied that the steps are not done in a transaction, unless explicitly made so.

However, in the documentation for the database/pgx, under Multi-statement Mode, it says:

In PostgreSQL running multiple SQL statements in one Exec executes them inside a transaction. Sometimes this behavior is not desirable ...

The latter seems to be correct, which means the tutorial is incorrect. Could you confirm? If so, I am happy to submit a PR to update the tutorial, just wanted to be sure before I do this.

Steps to Reproduce No steps, documentation inconsistency

Expected Behavior Documentation to be consistent

Migrate Version v4.15.1

Loaded Source Drivers file

Loaded Database Drivers postgres, postgresql, pgx

Go Version go version go1.18.4 darwin/amd64

Stacktrace N/A

Additional context I know this is just a documentation change. The versions I provided are what I used to verify deployment behavior.