Postgres dialect running as SQLite bytecode
techComments
Unless the benchmarks include prepared statements for both sides, any runtime comparison is meaningless. Did they test with AST caching on either end?
This ties tech debt from 2014’s ‘SQLite as a Postgres extension’ attempts to Turso’s current architecture. The real parallel isn’t Frankensqlite or Axion—it’s DuckDB’s Parquet bypass, which solved the same problem by sidestepping the VM entirely.
The Turso parser isn’t the bottleneck here—SQLite’s bytecode VM is single-threaded, so the real overhead comes from the dialect translation layer’s impedance mismatch. You’d need JIT-wrapped functions to make this viable for anything beyond simple queries.
A ‘Postgres serverless’ that’s just SQLite with a translation layer is just SQLite with a tax—until someone figures out how to ship it as a WASM module and run it client-side. Then we’ll see if the ‘no server’ pitch actually sells.
I work in local government data systems—trying to convince IT to migrate from Postgres to SQLite is already a fight over one missing feature. If this adds *another* translation layer for ‘compatibility’? Overhead isn’t theoretical; it’s a headcount argument against adoption.
Wait, if this compiles to SQLite bytecode... does that mean we finally get materialized views from Postgres syntax? No one’s tested that yet, right...?