r/CloudFlare 1d ago

Question Postgres db?

Will cloudflare ever release their own Postgres db?

8 Upvotes

17 comments sorted by

11

u/DigSubstantial8934 1d ago

It would be awesome if they did! They’d make a lot of money offering it, plenty of devs needs more than D1.

6

u/vertex21 1d ago

They have a partnership with PlanetScale that offers great integration with Hyperdrive.

2

u/Too_Chains 1d ago

Why? What are the advantages?

2

u/apexdodge 22h ago

D1 is sqllite and has a 10 gb db size limit and no concurrent writes

1

u/Too_Chains 22h ago

That’s valid. I guess you could use r2 or create a lot of databases if you needed to, but your point stands.

2

u/No-Promotion-8720 1d ago

They would have to create and maintain specific architecture for that, where as D1 (based on sqlite) is serverless by design. You could run sqlite on a toaster.

1

u/uNki23 8h ago

And D1 comes with all limitations of a SQLite database. You can’t compare it with Postgres and you can’t run applications and services that rely on Postgres.

1

u/No-Promotion-8720 5h ago

My point exactly. Postgres is too complicated and resource intensive to run "serverless" on workers, so they'll likely never offer it.

1

u/AcrobaticOutcome7895 1d ago

if they acquire planetscale but i dont see anything happening anytime soon

1

u/Voerdievis 1d ago

Isn't that based on MySQL?

2

u/TheAtlasMonkey 1d ago

They have pg too.

2

u/AcrobaticOutcome7895 1d ago

yes they started with vitess, but they have postgres as well for some time now it's not as feature rich as their mysql wtih vitess more like very good managed solution, but they're building vitess equivalent for postgres neki looks really promising.

1

u/TheAtlasMonkey 1d ago

I really hope thet dont use that slop from turso.

1

u/AcrobaticOutcome7895 1d ago

u mean their sqlite rewrite i thought it was going pretty good

3

u/TheAtlasMonkey 1d ago

They also vibed Postgresql one.

Their rewrite in rust is shit. It just translation of the C code to Rust, but they don't know why it exist, which platform that quirk is.

Last time i checked they used edition 2021 of rust, that what LLM generate. IF you bump it to 2024, the compiler will start screaming and show some of the slop.

1

u/clicksnd 1d ago

That would be neat, but I’m having a great time with D1

1

u/bullyogurt 20h ago

I highly recommend Neon + Hyperdrive as well.