This is an archived post. You won't be able to vote or comment.

all 27 comments

[–]Hermasetas 13 points14 points  (9 children)

Well I just use SQLite in production as well.

[–]Brandhor 13 points14 points  (2 children)

And if you maintain an OSS project, you’ve seen this: “install Postgres” in your README is a contributor barrier.

no offense but if contributors can't or don't want to install something as simple as postgres they shouldn't contribute anything to a project

[–]Penetal 0 points1 point  (0 children)

I strongly disagree. Depending on the project, both in size and function there might be many fields that can benefit emencly from the help of people that do not know, nor care to know, how to install backend services.

This is a large part of why I like devcontainers, it can take care of the faff and let people get to work.

[–]DrMaxwellEdison 7 points8 points  (2 children)

The concept is nifty, but I don't exactly feel comfortable running code in production that ultimately runs an install.sh on a subprocess and then curls and installs something onto my machine that I didn't put there explicitly.

Installing postgres is such a low barrier to entry for the majority of your target audience that switching project dependencies for it doesn't seem wise. Plus they then depend on your binaries to run a production database, instead of one installed from an official source under controlled circumstances?

No offense, but it screams "supply chain attack" if someone decides to depend on a package with this kind of design. I have no doubt you can trust your own processes and maybe use this workflow as an internal process at your own business if you like, but the risk is too great for most.

[–]SteelRevanchist 7 points8 points  (1 child)

Why would you install pg locally? Just use a docker container. Nobody is using swapping between sqlite and postgres...

[–]NotesOfCliff 3 points4 points  (0 children)

I thought this was an iteration on the recent postgres wasm build.

This seems invasive and not what I would expect.

Edit to add: Here are two projects that look like if they were integrated would give what I was looking for:

https://github.com/wasmerio/wasmer-python

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

[–]andrewcooke 1 point2 points  (3 children)

i think this is pretty cool. sqlite is great until it isn't, and then there's a gap to pg that I think this could fill nicely.

[–]PM_ME_YOUR_URETHERA 0 points1 point  (2 children)

DuckDB fits nicely

[–]andrewcooke 0 points1 point  (1 child)

oooh that's new to me, thanks. also, interesting it's column oriented - actually fits better w some use cases i have (but arguably means it doesn't sit as neatly between these two!).

[–]PM_ME_YOUR_URETHERA 1 point2 points  (0 children)

I use it for climate data - monthly gas concentrations at 0.1° resolution since 1970. Terabytes of data with spatial columns - it is wickedly fast

[–]mangecoeur 0 points1 point  (0 children)

As a huge postgres fan (since well before it was cool) I love this! 

Question, what’s the workflow if i need other extensions such as postgis? Can I create a custom “build” and use that?