From 6c4d85a0c8d7292c0ac92c18a730cb3b2843f171 Mon Sep 17 00:00:00 2001 From: Dev-iL <6509619+Dev-iL@users.noreply.github.com> Date: Mon, 6 Jul 2026 16:12:03 +0300 Subject: [PATCH] Update example Postgres connection strings to psycopg in executor docs The Batch, ECS, and Lambda executor setup guides hardcoded example postgresql+psycopg2:// connection strings for the metadata DB. Since providers/postgres no longer bundles psycopg2-binary by default, these stale examples would break for anyone following them as-is. Update them to the new postgresql+psycopg:// default. Part of the migration tracked in apache/airflow#68453. --- providers/amazon/docs/executors/batch-executor.rst | 2 +- providers/amazon/docs/executors/ecs-executor.rst | 2 +- providers/amazon/docs/executors/lambda-executor.rst | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/providers/amazon/docs/executors/batch-executor.rst b/providers/amazon/docs/executors/batch-executor.rst index 64ac98672ecce..8f71ba7d8c5ee 100644 --- a/providers/amazon/docs/executors/batch-executor.rst +++ b/providers/amazon/docs/executors/batch-executor.rst @@ -298,7 +298,7 @@ Create a Job Definition .. code-block:: bash - postgresql+psycopg2://:@/ + postgresql+psycopg://:@/ 7. Add other configuration as necessary for Airflow generally (see `here `__), the Batch executor (see :ref:`here `) or for remote logging (see :ref:`here `). Note that any configuration changes should be made across the entire Airflow environment to keep configuration consistent. diff --git a/providers/amazon/docs/executors/ecs-executor.rst b/providers/amazon/docs/executors/ecs-executor.rst index 9b98e3fc79a3e..fd534cb27ded0 100644 --- a/providers/amazon/docs/executors/ecs-executor.rst +++ b/providers/amazon/docs/executors/ecs-executor.rst @@ -332,7 +332,7 @@ Create Task Definition .. code-block:: bash - postgresql+psycopg2://:@/ + postgresql+psycopg://:@/ - ``AIRFLOW__ECS_EXECUTOR__SECURITY_GROUPS``, with the value being a comma separated list of security group IDs associated with the VPC used for the RDS instance. diff --git a/providers/amazon/docs/executors/lambda-executor.rst b/providers/amazon/docs/executors/lambda-executor.rst index 3451ba774ce49..4ceb5c3bea940 100644 --- a/providers/amazon/docs/executors/lambda-executor.rst +++ b/providers/amazon/docs/executors/lambda-executor.rst @@ -334,7 +334,7 @@ Finally create the function: .. code-block:: bash - postgresql+psycopg2://:@/ + postgresql+psycopg://:@/ - ``AIRFLOW__LAMBDA_EXECUTOR__QUEUE_URL``, with the value being the URL of the SQS queue created above.