Skip to content

Comments

Celery: explicitly specify psycopg2 in driverless postgres URLs#62159

Open
Dev-iL wants to merge 1 commit intoapache:mainfrom
Dev-iL:2602/sqla2.1-celery
Open

Celery: explicitly specify psycopg2 in driverless postgres URLs#62159
Dev-iL wants to merge 1 commit intoapache:mainfrom
Dev-iL:2602/sqla2.1-celery

Conversation

@Dev-iL
Copy link
Collaborator

@Dev-iL Dev-iL commented Feb 19, 2026

This PR resolves a breaking change introduced in SQLA2.1 where the default postgres driver was changed from psycopg2 (v2) to psycopg (v3).

The fix is to specify the psychopg2 driver explicitly.

To use the v3 driver, users should specify it explicitly: postgresql+psycopg://...

related: #61229


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

Generated-by: Claude Opus 4.6 following the guidelines


  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

To use the v3 driver, users should specify it explicitly: `postgresql+psycopg://...`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant