Skip to content

Use full postgresql URI connection prefix. #27474

Description

@codekronik

Apache Airflow version

2.4.2

What happened

This creates a deprecated URI string. I've added a new connection, using get_uri() returns a URI with postgres:// instead of postgressql:// so it's incompatible with a few libs. Should this be updated to return valid format URI ?

What you think should happen instead

The URI should return URI with postgresql:// prefix.

How to reproduce

Add a new postgres connection, pull up the Connection by ID in DAG and try using it directly with SQLAlchemy

Operating System

Debian

Versions of Apache Airflow Providers

No response

Deployment

Docker-Compose

Deployment details

No response

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions