6 ms·
What's the problem with Postgres on PyPy? Running fine in production here.
by aeyes 7y ago
What's the problem with Postgres on PyPy? Running fine in production here.
- throwaway894345 7y agoThere are no supported drivers for it as far as I could find. The common answer is to use psycopg2cffi, but that hasn’t had a commit in like 4 years. The alternatives I could find were in the same shape or worse.
- anarazel 7y agoThere's a few pure python drivers. Check https://wiki.postgresql.org/wiki/Python https://wiki.postgresql.org/wiki/Python and https://wiki.python.org/moin/PostgreSQL https://wiki.python.org/moin/PostgreSQL E.g. pg8000 looks like it's being maintained?
- throwaway894345 7y agoI recall looking at pg8000 in particular, but it didn't inspire confidence for our production use case. It had only 20 commits in 2019 and fewer than 100 stars. I also didn't have a good understanding of the performance tradeoffs (pypy/pg8000 vs C library).