Hi,
now that the psycopg3 package is under active development, would it be possible to either add a switch to find the correct package (try to import psycopg fallback to psycopg2 or fail), or add a new backend which is then chosen by what package is installed?
First this could work in a similar way to the psycopg2 connector, later it is still extendable to asyncio usage and a like if needed.
Thanks for your development. I would like to offer my help if I can do anything.
+1 I'd like to use psycopg3 in a new project and not have psycopg2 as an additional dependency.
This is now possible in the new 8.0 release. Psycopg2 is still the default though, switch to psycopg 3 by providing a connection url starting
postgresql+psycopg://…