Varrazzo: Thinking psycopg3
Psycopg is the database adapter usedby most Python programs needing to work with the PostgreSQL databasemanager. In thisblog post, psycopg maintainer Daniele Varrazzo looks forward to thenext major version. "There is a chance now to rethink how thick theC libpq wrapper should be. We can reduce the C implementation to a minimalwrapper around the libpq (replaceable by a CFFI Python wrapper if compilingC is not available on the client), using it as a foundation to build afamiliar DBAPI blocking interface. A blocking behaviour is not bad initself: it allows to write most of the programs, the ones which don't needcrazy concurrency, in a simple and familiar paradigm; the async layer wouldbe available under the hood to squeeze the best performance in programs whohave embraced an asynchronous pattern and framework."