3 ms·
Packaging is simpler. psycopg2-binary is actually not recommended for production use, so you have to compile it yourself.
by lmns 5y ago
Packaging is simpler. psycopg2-binary is actually not recommended for production use, so you have to compile it yourself.
- ohlookabird 5y agoThanks 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-released/ https://www.psycopg.org/articles/2018/02/08/psycopg-274-rele...
- BiteCode_dev 5y agoI've never heard of that, why would it not be?
- lmns 5y agoI don't know, that's what the developers say (last paragraph): https://pypi.org/project/psycopg2/ https://pypi.org/project/psycopg2/