skillfed

apache-airflow-providers-postgres

Provider package apache-airflow-providers-postgres for Apache Airflow

apache-airflow-providers-postgres v7.0.1 2.5M downloads/30d#3,054 on PyPI46,490
Permissive license Apache-2.0 Active released

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-postgres

uv

uv add apache-airflow-providers-postgres

poetry

poetry add apache-airflow-providers-postgres

Installing 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

Development Status :: 5 - Production/StableEnvironment :: ConsoleEnvironment :: Web EnvironmentFramework :: Apache AirflowFramework :: Apache Airflow :: ProviderIntended Audience :: DevelopersIntended Audience :: System AdministratorsProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: System :: Monitoring

Tags

airflow postgres integrationpostgresql airflow providerairflow database taskspostgres operators airflowairflow sql orchestrationpostgresql dag tasksairflow postgres hooks
airflow-providerpostgres-integrationdata-orchestration

More Monitoring packages

tqdm

Wraps any iterable to display a real-time…

copyleft · top 100 on PyPI

opentelemetry-semantic-conventions

Provides generated Python code for…

permissive · top 100 on PyPI

opentelemetry-sdk

Provides the reference implementation of the…

permissive · top 100 on PyPI

opentelemetry-api

Provides the abstract API and interfaces for…

permissive · top 100 on PyPI

opentelemetry-exporter-otlp-proto-http

Exports OpenTelemetry observability data to an…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation

Provides automatic instrumentation commands and…

permissive · top 1,000 on PyPI

apache-airflow-providers-oracle

Integrates Apache Airflow with Oracle…

permissive · top 5,000 on PyPI

apache-airflow-providers-teradata

Integrates Apache Airflow with Teradata…

permissive · top 15,000 on PyPI

apache-airflow-providers-common-sql

Provides common SQL operators, hooks, and…

permissive · top 1,000 on PyPI

apache-airflow-providers-snowflake

Integrates Apache Airflow with Snowflake,…

permissive · top 1,000 on PyPI

apache-airflow-providers-mysql

Integrates Apache Airflow with MySQL databases,…

permissive · top 5,000 on PyPI

apache-airflow-providers-pgvector

Integrates pgvector operations into Apache…

permissive · top 15,000 on PyPI

apache-airflow-providers-presto

Integrates Presto query execution into Apache…

permissive · top 15,000 on PyPI

apache-airflow-providers-microsoft-mssql

Integrates Microsoft SQL Server (MSSQL) with…

permissive · top 5,000 on PyPI

apache-airflow-providers-google

Integrates Apache Airflow with Google Cloud…

permissive · top 1,000 on PyPI

apache-airflow-providers-amazon

Provides Apache Airflow operators, hooks, and…

permissive · top 5,000 on PyPI