This is an automated email from the ASF dual-hosted git repository.

jscheffl pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 4d59108b9d8 Migrate postgres provider to use 
airflow.sdk.configuration.conf (#59984)
4d59108b9d8 is described below

commit 4d59108b9d8ca5ee5d68862bd777b9fdfc17d73f
Author: Ankit Chaurasia <[email protected]>
AuthorDate: Thu Jan 1 04:23:18 2026 +0545

    Migrate postgres provider to use airflow.sdk.configuration.conf (#59984)
---
 providers/postgres/pyproject.toml                                   | 2 +-
 providers/postgres/src/airflow/providers/postgres/hooks/postgres.py | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/providers/postgres/pyproject.toml 
b/providers/postgres/pyproject.toml
index 228ed884c8a..d0febbd0ba1 100644
--- a/providers/postgres/pyproject.toml
+++ b/providers/postgres/pyproject.toml
@@ -59,7 +59,7 @@ requires-python = ">=3.10"
 # After you modify the dependencies, and rebuild your Breeze CI image with 
``breeze ci-image build``
 dependencies = [
     "apache-airflow>=2.11.0",
-    "apache-airflow-providers-common-compat>=1.10.1",
+    "apache-airflow-providers-common-compat>=1.10.1",  # use next version
     "apache-airflow-providers-common-sql>=1.23.0",
     "psycopg2-binary>=2.9.9; python_version < '3.13'",
     "psycopg2-binary>=2.9.10; python_version >= '3.13'",
diff --git 
a/providers/postgres/src/airflow/providers/postgres/hooks/postgres.py 
b/providers/postgres/src/airflow/providers/postgres/hooks/postgres.py
index dc0d077f062..1bc554cc998 100644
--- a/providers/postgres/src/airflow/providers/postgres/hooks/postgres.py
+++ b/providers/postgres/src/airflow/providers/postgres/hooks/postgres.py
@@ -29,9 +29,8 @@ from more_itertools import chunked
 from psycopg2.extras import DictCursor, NamedTupleCursor, RealDictCursor, 
execute_batch
 from sqlalchemy.engine import URL
 
-from airflow.configuration import conf
 from airflow.exceptions import AirflowOptionalProviderFeatureException
-from airflow.providers.common.compat.sdk import AirflowException, Connection
+from airflow.providers.common.compat.sdk import AirflowException, Connection, 
conf
 from airflow.providers.common.sql.hooks.sql import DbApiHook
 from airflow.providers.postgres.dialects.postgres import PostgresDialect
 

Reply via email to