News for hackers. Stuff that matters.
Re:What if we treated Postgres like SQLite? by emschwartz on Monday September 22, 2025 @10:33AM (#45334021)
I think this is a neat direction to explore. I've wondered in the past whether you could use https://pglite.dev/ as if it were SQLite.
Re:What if we treated Postgres like SQLite? by tensor on Monday September 22, 2025 @11:55AM (#45335249)
Someone is working on a libpglite based around pglite. I think this is what will provide an actual sqlite alternative:

https://github.com/electric-sql/pglite-bindings

It would still be missing the standardized disk format aspect of sqlite, but otherwise will be neat.

Re:What if we treated Postgres like SQLite? by thruflo on Monday September 22, 2025 @11:55AM (#45335242)
This is very much the point of https://pglite.dev

It's an embeddable Postgres you can run in process as a local client DB, just like SQLite but it's actually Postgres.

Re:What if we treated Postgres like SQLite? by OutOfHere on Monday September 22, 2025 @12:10PM (#45335479)
I wish this were available for Go lang, perhaps via Wazero.
Re:What if we treated Postgres like SQLite? by ncruces on Monday September 22, 2025 @12:57PM (#45336227)
Me too. There's only so much time in life. I'd take it for a spin if someone else did it. :)
Re:What if we treated Postgres like SQLite? by markusw on Monday September 22, 2025 @02:12PM (#45337319)
Ah, I thought I recognized your username from a Github URL. :D Thank you for your contributions in the SQLite & Go space!
Re:What if we treated Postgres like SQLite? by emschwartz on Monday September 22, 2025 @12:40PM (#45335944)
For sure. I’m curious if anyone using it in production as an alternative to SQLite and, if so, what the performance and experience is like.
Re:What if we treated Postgres like SQLite? by markusw on Monday September 22, 2025 @01:34PM (#45336800)
Interesting! I'm going to look into that. :-) Thank you for sharing.
Re:What if we treated Postgres like SQLite? by xarope on Monday September 22, 2025 @10:18PM (#45342100)
You got my hopes up, but it's WASM for now, not something I could add into a golang [1] or python app and have running like sqlite. OK, still hoping...!

[1]https://github.com/electric-sql/pglite/issues/89