Turso vs Postgres
Both are relational and both speak SQL. They are built for different shapes of application, and this page shows you which shape yours is and how to decide.
No credit card.
Spot something out of date? Tell us on Discord.
If any of these describe your application, Turso is worth a closer look.
Create it through an API in the same call you create the user. No schema juggling and no row-level security policy to get wrong.
A database is a file. There is no process to keep warm and no connection pooler in front of it.
The same engine runs in your function, on the device and in a browser tab, with sync in between.
Separate files and separate regions, with separate keys on the Pro plan. Deleting a customer means deleting a database.
Run thousands of databases with most of them asleep and pay only for what they store.
Postgres and Turso are both open-source relational databases. They make very different bets about where a database lives and how many of them you run.
Turso
Turso is an open-source, SQLite-compatible database written in Rust, plus Turso Cloud, a managed service built on it. A Turso database is a file, not a long-running process, so you can create one per user, tenant or agent, and the same engine runs in your server, on phones and in the browser.
Postgres
Postgres is a client-server database, with a backend process for each connection. Supabase offers managed Postgres alongside auth, storage, Edge Functions and realtime, so you can use just the database or a full backend.
Turso is part of Supabase. Use Turso for lightweight per-user or per-agent data alongside Supabase Postgres. For a branching-focused comparison, see Turso vs Neon.Explore Supabase Postgres
Each difference below comes from how the two are built, and each one can be checked against the Postgres documentation and Turso's own pages.
01
Turso
Turso treats a database as a file. Nothing runs when nobody is querying it, so an idle database costs only its storage, and you create one in the same API call that creates the user. Adaptive has created over 2 million databases, one per prompt and app version. Engine Labs runs tens of thousands of agent teams, each with its own database, on a $500 a month plan.
With Postgres
Postgres is built around one shared server. Each connection gets its own process, so most teams put a pooler in front of it, and multi-tenant apps usually separate customers with schemas or row-level security inside one database.
02
Turso
Turso runs in-process on Linux, macOS, Windows and in browsers through WebAssembly. Turso Sync brings local-first reads and writes to the Turso Database engine, with explicit push and pull. libSQL Embedded Replicas provide a separate option for local reads.
With Postgres
Your app reaches Postgres over the network. Offline support means a second local data layer and a sync process of your own. PGlite puts Postgres in WebAssembly as a separate project.
“We kind of get local speed, but we know that it is going to be replicated and stored remotely, such that if that goes down, we still have the data.”
Matthias Pichler
Founding Engineer, Wordware (Sauna)
03
Turso
On the Pro plan, Turso Cloud supports per-database encryption with keys you hold. It also offers bring-your-own-cloud deployment on AWS and a region you choose per database. Deleting a customer means deleting a database.
With Postgres
Postgres gives you strong access control inside one database, including row-level security. Encryption at rest and data residency are handled by whoever hosts it, and every tenant shares the same keys and the same region.
Turso is the better fit when your data is split across many users, agents or tenants, needs to live on the device, or needs a boundary per customer. Postgres is the better fit for one large shared dataset with many concurrent writers, deep extensions and reporting across every customer in one query. Spot something out of date? Tell us on Discord.
| Feature | Turso | Postgres |
|---|---|---|
| Unit of scale | Many small databases | One server, scaled up, then replicas or sharding |
| Process model | In-process. No server to run and no connection to pool | One backend process per connection, usually with a pooler in front |
| Creating a database | An API call, one per entity | Possible, with per-database overhead on a shared server |
| Idle cost | Storage only | A running server, unless the host scales it to zero |
| Write concurrency | MVCC with BEGIN CONCURRENT; concurrent writes in Turso Cloud (beta) | Mature MVCC, proven under many writers |
| Types | Dynamic typing with STRICT tables. No decimal type, so money is stored as integers | Rich static types, including NUMERIC, arrays, enums and JSONB |
| Extensions | SQLite extensions, a smaller ecosystem | Very large ecosystem, for example PostGIS, pgvector and TimescaleDB |
| Vector search | Built in, no extension, also on device | Through pgvector |
| Materialized views | Incrementally maintained | Manual refresh |
| Queries across all tenants | One database at a time | One query across every tenant in a shared schema |
| Per-database encryption with your key | Yes, on the Pro plan | Depends on the host |
| Runs in your own cloud account | Yes, BYOC | Depends on the host |
| Leaving | The file is a valid SQLite database you can open anywhere | Standard dumps and logical replication |
Both are good at what they were built for. The question is what your data looks like once you have users.
Choose Turso if
Choose Postgres if
Use both if
Turso is part of Supabase. Keep shared business data in Supabase Postgres and give each user or agent a lightweight Turso database alongside it.
100 databases free. No credit card. Keep Postgres for what it does best.