Repository

winebarrel/pistachio

Pistachio

pistachio is a declarative schema management tool for PostgreSQL with a Terraform-like plan/apply workflow.

68stars

Open github.com

winebarrel/pistachio

Pistachio

Declarative schema migration tool for PostgreSQL with Terraform-like plan/apply workflow. Compares desired DDL files with live database and generates migration SQL.

Visit project

Show me a random project

First shared
Jun 14, 2026
HN activity
30

Show HN@winebarrelJun 14, 2026

Show HN: Pistachio – A declarative schema migration tool for PostgreSQL

Pistachio is a declarative schema migration tool similar to sqldef. I created this tool because there were some SQL statements that psqldef couldn't parse. Since it uses pg_query_go, you can parse the SQL using PostgreSQL's SQL parser. You can try out the demo using the following command: docker run --rm -it ghcr.io/winebarrel/pistachio-demo

Community

Hacker News discussion

Loading the thread…