apache-airflow-providers-postgres
Provider package apache-airflow-providers-postgres for Apache Airflow
What it is and what it does
This is an Apache Airflow provider package that adds PostgreSQL connectivity to Airflow DAGs. It supplies operators, hooks, and sensors that let you define and orchestrate PostgreSQL tasks—queries, stored procedures, data transfers—as part of Airflow workflows. The package wraps multiple PostgreSQL client libraries (psycopg, psycopg2-binary, and asyncpg) to support both synchronous and asynchronous database operations.
It is designed for teams running Airflow who need to integrate PostgreSQL into their data pipelines. Installation is straightforward on top of an existing Airflow setup (>=2.11.0), and it supports Python 3.10 through 3.14. The package is actively maintained as part of the Apache Airflow ecosystem and carries no known security vulnerabilities.
Use it for:
- Execute SQL queries or stored procedures on PostgreSQL as scheduled Airflow tasks within a DAG.
- Monitor PostgreSQL tables for data changes and trigger downstream tasks using Airflow sensors.
- Transfer data between PostgreSQL and other systems (S3, Azure, etc.) using cross-provider integrations.
- Build ETL pipelines that extract, transform, and load data into PostgreSQL as part of Airflow orchestration.
- Integrate PostgreSQL with OpenLineage for data lineage tracking in Airflow workflows.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Integrates PostgreSQL databases with Apache Airflow, providing operators, hooks, and sensors to orchestrate database tasks and queries within Airflow workflows.
Yes. This is a production-stable, actively maintained provider for a common use case (PostgreSQL + Airflow). Install friction is low, licensing is permissive, no vulnerabilities are known, and it integrates cleanly with Airflow's ecosystem. Install it if you are running Airflow and need to orchestrate PostgreSQL tasks.
Install
apache-airflow-providers-postgres on PyPI
pip
pip install apache-airflow-providers-postgresuv
uv add apache-airflow-providers-postgrespoetry
poetry add apache-airflow-providers-postgresInstalling apache-airflow-providers-postgres
Before you install
Low friction install as a pure-Python wheel. Active maintenance with a release 6 days old; the parent Airflow project has 46490 stars and receives regular commits. Requires Airflow >=2.11.0 and modern Python (3.10–3.14).
License in practice
Licensed under Apache-2.0 (permissive), allowing use in commercial and proprietary projects with minimal restrictions.
Quickstart
pip install apache-airflow-providers-postgres
from airflow.providers.postgres.operators.postgres import PostgresOperator
from airflow import DAG
with DAG('my_dag') as dag:
task = PostgresOperator(
task_id='run_query',
postgres_conn_id='my_postgres',
sql='SELECT * FROM my_table'
)
Requires an existing Apache Airflow installation (>=2.11.0) and a configured PostgreSQL connection in Airflow.
Verify before relying
- Whether asyncpg support is used by default or requires explicit opt-in via extras.
- Specific operators, sensors, and hooks available beyond basic query execution.
- Support for advanced features like connection pooling or transaction management.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — apache-airflow, apache-airflow-providers-common-compat, apache-airflow-providers-common-sql, psycopg, psycopg2-binary, asyncpg |
| Maintenance | actively maintained — 6 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,461,824/month — #3,054 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: apache_airflow_providers_postgres-7.0.1-py3-none-any.whl
Keywords: airflow-provider, postgres, airflow, integration
Tags
More Monitoring packages
Wraps any iterable to display a real-time…
copyleft · top 100 on PyPI
opentelemetry-semantic-conventionsProvides generated Python code for…
permissive · top 100 on PyPI
opentelemetry-sdkProvides the reference implementation of the…
permissive · top 100 on PyPI
opentelemetry-apiProvides the abstract API and interfaces for…
permissive · top 100 on PyPI
opentelemetry-exporter-otlp-proto-httpExports OpenTelemetry observability data to an…
permissive · top 1,000 on PyPI
opentelemetry-instrumentationProvides automatic instrumentation commands and…
permissive · top 1,000 on PyPI
apache-airflow-providers-oracleIntegrates Apache Airflow with Oracle…
permissive · top 5,000 on PyPI
apache-airflow-providers-teradataIntegrates Apache Airflow with Teradata…
permissive · top 15,000 on PyPI
apache-airflow-providers-common-sqlProvides common SQL operators, hooks, and…
permissive · top 1,000 on PyPI
apache-airflow-providers-snowflakeIntegrates Apache Airflow with Snowflake,…
permissive · top 1,000 on PyPI
apache-airflow-providers-mysqlIntegrates Apache Airflow with MySQL databases,…
permissive · top 5,000 on PyPI
apache-airflow-providers-pgvectorIntegrates pgvector operations into Apache…
permissive · top 15,000 on PyPI
apache-airflow-providers-prestoIntegrates Presto query execution into Apache…
permissive · top 15,000 on PyPI
apache-airflow-providers-microsoft-mssqlIntegrates Microsoft SQL Server (MSSQL) with…
permissive · top 5,000 on PyPI
apache-airflow-providers-googleIntegrates Apache Airflow with Google Cloud…
permissive · top 1,000 on PyPI
apache-airflow-providers-amazonProvides Apache Airflow operators, hooks, and…
permissive · top 5,000 on PyPI