Phase 6: Migrate psycopg2-binary to psycopg3#9328
Open
camd wants to merge 2 commits intocamd/back-end-package-upgrade-phase-5from
Open
Phase 6: Migrate psycopg2-binary to psycopg3#9328camd wants to merge 2 commits intocamd/back-end-package-upgrade-phase-5from
camd wants to merge 2 commits intocamd/back-end-package-upgrade-phase-5from
Conversation
- Update Docker base images to python:3.14 - Update CircleCI to cimg/python:3.14-node - Update tox envlist to py314 - Upgrade C extension packages for cp314 wheels: - numpy 2.2.6 → 2.4.3 - scipy 1.15.1 → 1.17.1 - contourpy 1.3.2 → 1.3.3 - pandas 2.2.3 → 2.3.3 - zstandard 0.23.0 → 0.25.0 - pyarrow 19.0.0 → 23.0.1 - Fix multiprocessing.Pool deadlock: Python 3.14 defaults to 'forkserver' start method which deadlocks inside Django; explicitly use 'fork' context in perfcompare API - Silence drf-spectacular E001 check (typing._UnionGenericAlias deprecation on Python 3.14) - Add pytest warning filters for Python 3.14 deprecations - Note: ruff target-version stays at py313 (ruff doesn't support py314 yet) Co-Authored-By: Claude Opus 4.6 <[email protected]>
Django 6.0 natively supports psycopg3. The codebase uses Django ORM exclusively with no direct psycopg2 imports, making this a clean swap. psycopg3 is actively maintained and offers better async support, connection pooling, and Python 3.14 compatibility. Co-Authored-By: Claude Opus 4.6 <[email protected]>
a15f6f6 to
a540437
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
psycopg2-binary==2.9.11topsycopg[binary]==3.3.3(psycopg3)Stacked on
Test plan
🤖 Generated with Claude Code