Hacker News new | ask | show | jobs
by lmns 1867 days ago
Packaging is simpler. psycopg2-binary is actually not recommended for production use, so you have to compile it yourself.
2 comments

Thanks for the pointer, I wasn't aware of this! I was wondering what the problem is, because I use psycopg2-binary in production without problems for ages. It seems the danger of psycopg2-binary is that one can end up with segfaults, due to the libpq library (and hence psycopg2) might use a different libssl than the system one (use by Python, with e.g. urllib and requests): https://www.psycopg.org/articles/2018/02/08/psycopg-274-rele...
I've never heard of that, why would it not be?
I don't know, that's what the developers say (last paragraph): https://pypi.org/project/psycopg2/