News for hackers. Stuff that matters.
Re:We're Building Postgres in Rust. Using the LLVM of Databases by ComputerGuru on Thursday July 16, 2026 @11:56AM (#48936282)
Author also discussing it on their Twitter [0]. I’m reserving judgement for now, but this has lots of potential usecases even apart from replacing postgres.

[0]: https://x.com/glcst/status/2077759127682486561?s=46

Re:We're Building Postgres in Rust. Using the LLVM of Databases by cute_boi on Thursday July 16, 2026 @02:10PM (#48938081)
People said same thing about sqlite, but I love turso sqlite and haven't faced any issues.
Re:We're Building Postgres in Rust. Using the LLVM of Databases by egorfine on Thursday July 16, 2026 @04:15PM (#48939633)
There is no turso sqlite
Re:We're Building Postgres in Rust. Using the LLVM of Databases by tredre3 on Thursday July 16, 2026 @05:01PM (#48940179)
I don't know if you were being pedantic or confused, but turso is a sqlite3 remake in rust (with some additional features).
Re:We're Building Postgres in Rust. Using the LLVM of Databases by egorfine on Thursday July 16, 2026 @05:34PM (#48940556)
turso is not an sqlite remake.

at all

Re:We're Building Postgres in Rust. Using the LLVM of Databases by hybrasian on Friday July 17, 2026 @01:49AM (#48943731)
Maybe you could explain why you think it is not a remake, when it clearly is generally seen as one.
Re:We're Building Postgres in Rust. Using the LLVM of Databases by egorfine on Friday July 17, 2026 @05:12AM (#48945018)
Because it's not a remake and not seen as one.

It's a product done by someone while claiming some level of compatibility with whatever they want to claim compatibility with.

It has nothing to do with SQLite or Postgres or whatever else's brand they will type in their docs.

Re:We're Building Postgres in Rust. Using the LLVM of Databases by lenkite on Friday July 17, 2026 @03:42AM (#48944399)
They are even going to the extend of preserving SQLite footguns, so I am not sure what else would it be.
Re:We're Building Postgres in Rust. Using the LLVM of Databases by egorfine on Friday July 17, 2026 @05:10AM (#48945009)
It's something else that claims some level of compatibility with SQLite.

It has nothing to do with SQLite.

Re:We're Building Postgres in Rust. Using the LLVM of Databases by mistrial9 on Thursday July 16, 2026 @08:59PM (#48942222)
"An in-process SQL database, compatible with SQLite, and now with a Postgres frontend too "
Re:We're Building Postgres in Rust. Using the LLVM of Databases by Omega359 on Thursday July 16, 2026 @01:55PM (#48937894)
The llvm of databases is not turso, it's datafusion.
Re:We're Building Postgres in Rust. Using the LLVM of Databases by mhh__ on Thursday July 16, 2026 @05:25PM (#48940465)
Yes I assumed datafusion when I heard that phrase.
Re:We're Building Postgres in Rust. Using the LLVM of Databases by andriy_koval on Monday July 20, 2026 @01:15PM (#48981737)
datafusion is llvmm for etl engines, they don't have indexes or transactions for example.
Re:We're Building Postgres in Rust. Using the LLVM of Databases by polyrand on Thursday July 16, 2026 @02:44PM (#48938525)
I'm already quite excited about Turso being SQLite-compatible, but adding many features on top.

And when a feature is not directly compatible with SQLite (ie: you can't directly read the file with `sqlite3`, it's straightforward to convert). This is great because you know you'll always be able to continue working with that database. Even if Turso stopped working, it's still a valid SQLite database.

A combination I would be excited about is:

- Full support for Postgres protocol/wire format (ie: Postgres, but in-process, backed by a single file). - Optional: Client/server architecture for further scaling and remote management using existing Postgres tooling - All backed by a SQLite-compatible file

They are already adding MVCC to SQLite anyway. So their effort seems doable, and I hope they succeed.

Re:We're Building Postgres in Rust. Using the LLVM of Databases by SOLAR_FIELDS on Thursday July 16, 2026 @07:04PM (#48941439)
Supporting Postgres is a good goal but honestly the real challenge is extensions. Would supporting Postgres wire compatibility guarantee any Postgres extension would also work? This is one of the problems with Aurora - it’s all well and good until you need an extension that isn’t on the blessed list
Re:We're Building Postgres in Rust. Using the LLVM of Databases by lmz on Friday July 17, 2026 @12:27AM (#48943328)
> Would supporting Postgres wire compatibility guarantee any Postgres extension would also work?

It would not, for obvious reasons.

Re:We're Building Postgres in Rust. Using the LLVM of Databases by SOLAR_FIELDS on Friday July 17, 2026 @03:02AM (#48944174)
Care to elaborate? The reasons are not obvious
Re:We're Building Postgres in Rust. Using the LLVM of Databases by dumah on Friday July 17, 2026 @07:00AM (#48945806)
Wire protocol applies to external interaction with the db.

Internal ABI/API is used by extensions to directly interact with core subsystems and depends on internal models for things like storage.

It might be analogous to HTTP versus an nginx plugin.

Re:We're Building Postgres in Rust. Using the LLVM of Databases by SOLAR_FIELDS on Friday July 17, 2026 @06:53PM (#48953071)
curious how hard it is to implement wire protocol compatibility vs the internal api surface. Are we talking like, an order of magnitude more work here? I wonder if, for example, Aurora team are literally maintaining forks of extensions for their implementation and that's why only a subset of all possible extensions are supported?
Re:We're Building Postgres in Rust. Using the LLVM of Databases by amluto on Friday July 17, 2026 @06:37AM (#48945617)
There’s a section about extensions in the FAQ.
Re:We're Building Postgres in Rust. Using the LLVM of Databases by scotty79 on Thursday July 16, 2026 @02:51PM (#48938627)
Will it have fast COUNT-s?
Re:We're Building Postgres in Rust. Using the LLVM of Databases by hoppp on Thursday July 16, 2026 @03:07PM (#48938853)
Sounds cool but also why? Is it so it's possible to have 1 database and then switch from sqlite to postgres without data migration?
Re:We're Building Postgres in Rust. Using the LLVM of Databases by khuey on Thursday July 16, 2026 @04:38PM (#48939887)
As someone who doesn't follow databases that closely, how is this different from Amazon Aurora (other than being open source)?
Re:We're Building Postgres in Rust. Using the LLVM of Databases by mhh__ on Thursday July 16, 2026 @05:25PM (#48940457)
Would be interested in strategic value add versus cedardb (although cedar is closed source in a way that at the moment I think may kill it)
Re:We're Building Postgres in Rust. Using the LLVM of Databases by andrea76 on Friday July 17, 2026 @04:40AM (#48944783)
Tried DOOM in that page, it's really slow...
Re:We're Building Postgres in Rust. Using the LLVM of Databases by mrdlm on Friday July 17, 2026 @04:43AM (#48944803)
The ram is a blob on the db, ofc it's slow
Re:We're Building Postgres in Rust. Using the LLVM of Databases by dzonga on Friday July 17, 2026 @02:45PM (#48950844)
> If you have ever babysat a REFRESH MATERIALIZED VIEW cron job, or faked live views with a pile of triggers, read that sentence again: our views update themselves, live. This is the feature Postgres users have quietly wanted for twenty years.

Real-time materialized views - so far mostly Chinese tech shops have solved this - look at Apache Doris, StarRocks - but these are built on top of MySQL then maybe RisingWave which is Postgres wire compatible.

having real-time materialized views means you can take out 1 or 2 infra pieces from your stack e.g Flink & Kafka - for some simplified use cases. that means no more ETL jobs for some use cases.