Skip to content

Support psycopg3 RFC #14586

@matrixbot

Description

@matrixbot

This issue has been migrated from #14586.


Description:

The latest version of psycopg is psycopg3; it supports asyncio and also works in pure python for better pypy compatibility.

In a django app that I develop, it's almost 5% faster with more optimizations coming. I'm also a synapse user and would be interested in trying to port synapse to psycopg3 for the improved performance.

  • Would such a PR be of interest to the synapse project?
  • If so, could this be a complete migration to psycopg3, or would you want the codebase to support both 2 & 3?
    • If it's critical to retain the support if psycopgcffi, then both would need to be supported.
    • (Given the pure-python mode, perhaps pypy performance on psycopg3 would be equivalent to psycopgcffi?)

Any thoughts on this proposal? It might be biting off more than I can chew to do a migration, but I'd like to try if the synapse maintainers are open to it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions