Switch the default async Postgres driver from asyncpg to psycopg3 (provider)#69089
Merged
shahar1 merged 1 commit intoJul 4, 2026
Merged
Conversation
1 task
608e0e0 to
35697d5
Compare
35697d5 to
ec31a5a
Compare
uranusjr
reviewed
Jul 2, 2026
ec31a5a to
0091e00
Compare
asyncpg moves to an opt-in extra of the postgres provider; psycopg (psycopg3) is now installed by default as the async metadata-database driver. This pairs with the Airflow 3.4.0 core change that derives postgresql+psycopg_async:// by default, which is safe behind transaction-mode PgBouncer with no extra configuration.
0091e00 to
f09ad01
Compare
shahar1
approved these changes
Jul 4, 2026
Dev-iL
added a commit
to Dev-iL/airflow
that referenced
this pull request
Jul 6, 2026
Mirrors the async default switch (apache#69089): PostgresHook no longer requires psycopg2 at import time. The psycopg2-specific connection, cursor, and execute_values imports are now lazy/guarded and raise a clear AirflowOptionalProviderFeatureException if psycopg2 genuinely needs to be used but isn't installed. psycopg2-binary moves to a new [psycopg2] extra. Part of the migration tracked in apache#68453.
1 task
Dev-iL
added a commit
to Dev-iL/airflow
that referenced
this pull request
Jul 6, 2026
Mirrors the async default switch (apache#69089): PostgresHook no longer requires psycopg2 at import time. The psycopg2-specific connection, cursor, and execute_values imports are now lazy/guarded and raise a clear AirflowOptionalProviderFeatureException if psycopg2 genuinely needs to be used but isn't installed. psycopg2-binary moves to a new [psycopg2] extra. Part of the migration tracked in apache#68453.
1 task
Dev-iL
added a commit
to Dev-iL/airflow
that referenced
this pull request
Jul 7, 2026
Mirrors the async default switch (apache#69089): PostgresHook no longer requires psycopg2 at import time. The psycopg2-specific connection, cursor, and execute_values imports are now lazy/guarded and raise a clear AirflowOptionalProviderFeatureException if psycopg2 genuinely needs to be used but isn't installed. psycopg2-binary moves to a new [psycopg2] extra. Part of the migration tracked in apache#68453.
1 task
Dev-iL
added a commit
to Dev-iL/airflow
that referenced
this pull request
Jul 7, 2026
Mirrors the async default switch (apache#69089): PostgresHook no longer requires psycopg2 at import time. The psycopg2-specific connection, cursor, and execute_values imports are now lazy/guarded and raise a clear AirflowOptionalProviderFeatureException if psycopg2 genuinely needs to be used but isn't installed. psycopg2-binary moves to a new [psycopg2] extra. Part of the migration tracked in apache#68453.
75 tasks
Dev-iL
added a commit
to Dev-iL/airflow
that referenced
this pull request
Jul 7, 2026
Mirrors the async default switch (apache#69089): PostgresHook no longer requires psycopg2 at import time. The psycopg2-specific connection, cursor, and execute_values imports are now lazy/guarded and raise a clear AirflowOptionalProviderFeatureException if psycopg2 genuinely needs to be used but isn't installed. psycopg2-binary moves to a new [psycopg2] extra. Part of the migration tracked in apache#68453.
Dev-iL
added a commit
to Dev-iL/airflow
that referenced
this pull request
Jul 8, 2026
Mirrors the async default switch (apache#69089): PostgresHook no longer requires psycopg2 at import time. The psycopg2-specific connection, cursor, and execute_values imports are now lazy/guarded and raise a clear AirflowOptionalProviderFeatureException if psycopg2 genuinely needs to be used but isn't installed. psycopg2-binary moves to a new [psycopg2] extra. Part of the migration tracked in apache#68453.
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.
Split from the below, see details there:
Important
Note to RMs: this introduces a breaking change that requires a major version bump!