apache-airflow-providers-postgres

更新日志

6.6.3

发布日期:2026-04-12

其他

  • 从 YAML 加载 hook 元数据而不导入 Hook 类 (#63826)

6.6.2

发布日期:2026-03-28

漏洞修复

  • Add validation for missing host and cluster/workgroup identifier in aws iam token retrieval (#61965)

杂项

  • 添加对 Python 3.14 的支持 (#63520)

6.6.1

发布日期:2026-03-13

其他

  • Migrate postgres connection UI metadata to YAML (#62445)

6.6.0

发布日期:2026-03-02

特性

  • 特性:为 SQL hook 添加 Hook 级血缘 (#61535)

  • Added validation for missing redshift connection host in postgres hook openlineage (#60918)

杂项

  • min sqlalchemy 版本提高到 1.4.54 (#62299)

6.5.4

发布日期: 2026-02-14

杂项

  • Guard type aliases and remove redundant imports in the postgres hook (#61554)

  • 清理一些依赖项 (#60992)

6.5.3

发布日期:2026-02-02

杂项

  • SQLAlchemy 添加到提供商的 dev-dependency 组中 (#60472)

6.5.2

发布日期:2026-01-17

杂项

  • provider 中使用来自 compat sdk ''AirflowOptionalProviderFeatureException'' (#60335)

  • 新的一年意味着版权声明的更新 (#60344)

  • Make SQLAlchemy optional for Postgres provider (#60257)

  • Migrate postgres provider to use airflow.sdk.configuration.conf (#59984)

6.5.1

发布日期:2025-12-13

其他

  • provider 中添加异常的向后兼容支持 (#58727)

6.5.0

发布日期: 2025-11-30

注意

根据 Apache Airflow providers 支持政策 <https://github.com/apache/airflow/blob/main/PROVIDERS.rst#minimum-supported-version-of-airflow-for-community-managed-providers>_ 的说明,此版本的 provider 仅适用于 Airflow 2.11+。

杂项

  • provider 中最低 Airflow 版本提升至 Airflow 2.11.0 (#58612)

6.4.1

发布日期:2025-11-17

杂项

  • 转换所有 airflow 发行版以符合 ASF 要求 (#58138)

  • SnowflakeHook PostgresHook 中改进使用旧版本 AzureBaseHook 时的错误处理 (#57184)

6.4.0

发布日期:2025-10-26

特性

  • Add Azure IAM/Entra ID support for PostgresHook (#55729)

其他

  • 修复 common/sql 提供程序中针对 sqlalchemy 2 升级的 mypy 类型错误 (#56824)

  • Migrate postgres provider to ''common.compat'' (#57022)

仅限文档

  • 移除变更日志和索引文件中的占位符发布日期 (#56056)

6.3.0

发布日期:2025-09-09

特性

  • Added specialized insert_rows in PostgresHook which uses faster psycopg execute_batch method (#54988)

  • 添加对 psycopg3 的基础支持 (#52976)

  • Implemented native get_column_names in PostgresDialect to become SQLAlchemy independent (#54437)

错误修复

  • PostgresDialect should use index instead of name in get_column_names and get_primary_keys (#54832)

杂项

  • 添加对 SQLAlchemy 2.0 CI 支持 (#52233)

仅文档

  • 使 provider 文档中的 Dag 术语保持一致 (#55101)

6.2.3

发布日期:2025-08-11

Bug 修复

  • 修复 PostgresHook 忽略已注册的自定义适配器的问题 (#53707)

6.2.2

发布日期:2025-08-02

Bug 修复

  • fix(postgres/hooks): ensure get_df uses SQLAlchemy engine to avoid pandas warning (#52224)

杂项

  • Airflow 添加 Python 3.13 支持。 (#46891)

  • Cleanup type ignores in postgres provider where possible (#53275)

  • mypy 升级后移除整个代码库中的 type ignore (#53243)

  • 移除“python-requires”的高版本限制 (#52980)

  • 暂时切换为使用 >=,< 模式替代“~=” (#52967)

6.2.1

发布日期: 2025-07-06

杂项

  • 将“BaseHook”实现迁移到 task SDK (#51873)

  • 禁用 UP038 ruff 规则并还原实例检查中强制的“X | Y” (#52644)

  • 停止支持 Python 3.9 (#52072)

6.2.0

发布日期:2025-05-18

注意

此提供程序的此发行仅在 Airflow 2.10+ 上可用,详情请参阅 Apache Airflow 提供程序支持政策

杂项

  • providers 中的最低 Airflow 版本提升至 2.10 (#49843)

6.1.3

发布日期:2025-04-19

错误修复

  • Fix PostgresHook Json serialization (#49120)

杂项

  • 移除多余的 else 代码块 (#49199)

6.1.2

发布日期:2025-04-09

其他

  • Update minimum version of common.sql provider to 1.23.0 (#48416)

6.1.1

发布日期: 2025-03-13

其他

  • 升级 flit 3.11.0 (#46938)

6.1.0

发布日期:2025-02-26

功能

  • 在 DbApiHook 中引入方言 (dialects) 的概念 (#41327)

漏洞修复

  • 修复 common sql 提供程序对方言中作为列名的特殊字符或保留字的转义 (#45640)

杂项

  • Bump psycopg2 to 2.9.9 to possibly avoid crash on Python 3.12 (#46431)

  • 添加描述引入方言概念原因的 ADR 文档 (#45456)

  • Bump minimum version of psycopg2-binary to 2.9.7 (#45635)

6.0.0

发布日期:2024-12-26

注意

Apache Airflow 提供商支持策略中所述,此版本的提供商仅适用于 Airflow 2.9+。

破坏性变更

警告

已删除 Postgres Provider 包中所有已废弃的类、参数和特性。引入了以下不兼容的改动:

  • Hooks
    • 参数 schema 已重命名为 database,因为它实际保存的是数据库名称。已删除所有已废弃的参数、getter 和 setter。请使用 database 来设置数据库名称。

  • 算子 (Operators)
    • 移除 airflow.providers.postgres.operators.postgres.PostgresOperator。请改为使用 airflow.providers.common.sql.operators.sql.SQLExecuteQueryOperator

  • Remove Provider Deprecations in Postgres (#44705)

杂项

  • 将提供商中最低 Airflow 版本提升至 Airflow 2.9.0 (#44956)

  • 更新多个提供商文档中的 DAG 示例链接 (#44034)

  • 添加 基本 asyncio 支持 (#43944)

5.14.0

发布日期:2024-11-18

特性

  • Add AWS Redshift Serverless support to PostgresHook (#43669)

Bug Fixes

  • Fix PostgresHook bug when getting AWS Redshift Serverless credentials (#43807)

杂项

  • DbApiHook、PrestoHook TrinoHook 添加分号去除支持 (#41916)

5.13.1

发布日期:2024-10-14

其他

  • 将与数据集中(dataset)相关的 python 变量名重命名为资产(asset) (#41348)

5.13.0

发布日期:2024-09-24

特性

  • feat: 为 postgres 提供程序记录客户端数据库消息 (#40171)

其他

  • 归纳 DbApiHook 中连接的缓存机制,以提升性能 (#40751)

5.12.0

发布日期:2024-08-22

注意

根据 Apache Airflow provider 支持政策,此版本的 provider 仅适用于 Airflow 2.8+。

杂项

  • 将各 provider 的最低 Airflow 版本提升至 Airflow 2.8.0 (#41396)

5.11.3

发布日期:2024-08-06

其他

  • 清理 剩余的 getattr 连接 DbApiHook (#40665)

5.11.2

发布日期:2024-06-27

其他

  • 实现 每个 provider tests 并使用 最低直接依赖解析 (#39946)

5.11.1

发布日期:2024-05-30

Bug 修复

  • fix: use 'sqlalchemy_url' property in 'get_uri' for postgresql provider (#38831)

其他

  • 更快的 'airflow_version' 导入 (#39552)

  • 简化 'airflow_version' 导入 (#39497)

5.11.0

发布日期:2024-05-06

注意

正如 Apache Airflow 提供者支持策略 中所述,此版本的提供者仅适用于 Airflow 2.7+。

漏洞修复

  • Fix schema assigment in PostgresOperator (#39264)

杂项

  • 将提供者中的最低 Airflow 版本提升至 Airflow 2.7.0 (#39240)

  • DbApiHook 中插入行时,始终使用 executemany 方法,因为它要快得多 (#38715)

5.10.2

发布日期:2024-03-08

杂项

  • 实现 AIP-60 数据集 URI 格式 (#37005)

5.10.1

发布日期: 2024-02-15

杂项

  • feat:将所有类、函数、方法的弃用切换为装饰器 (#36876)

5.10.0

发布日期:2023-12-27

特性

  • 使 ODBC "placeholder" UI 中可配置 (#36000)

Bug 修复

  • 在子类中遵循 BaseHook 连接字段的方法签名 (#36086)

5.9.0

发布日期:2023-12-12

注意

正如 Apache Airflow 提供者支持策略 中所述,此版本的提供者仅适用于 Airflow 2.6+。

杂项

  • provider 最低 Airflow 版本 提升至 Airflow 2.6.0 (#36017)

5.8.0

发布日期:2023-11-12

特性

  • Refactor cursor retrieval in PostgresHook. (#35498)

5.7.1

发布日期:2023-10-21

Bug 修复

  • 'PostgresOperator' should not overwrite 'SQLExecuteQueryOperator.template_fields' (#34969)

5.7.0

发布日期:2023-10-17

注意

Apache Airflow providers 支持策略 中所述,此版本的 provider 仅适用于 Airflow 2.5+。

特性

  • Add 'get_ui_field_behaviour()' method to PostgresHook (#34811)

杂项

  • 提升 providers 的最低 airflow 版本 (#34728)

5.6.1

发布日期:2023-09-12

杂项

  • 通过将部分模块导入放入类型检查块 改进 Airflow providers modules import (#33754)

  • provider 中使用单个 with 语句处理多个上下文,而不是嵌套 语句 (#33768)

  • providers 中直接使用字典字面量,而不是调用 dict() (#33761)

5.6.0

发布日期: 2023-08-01

特性

  • openlineage, postgres: add OpenLineage support for Postgres (#31617)

杂项

  • 将弃用信息添加到 providers 模块和类的文档字符串中 (#32536)

5.5.2

发布日期: 2023-07-09

杂项

  • Deprecate 'runtime_parameters' in favor of options in 'hook_params' (#32345)

5.5.1

发布日期: 2023-06-23

注意

此版本停止了对 Python 3.7 的支持

杂项

  • 添加 关于 提供程序 移除 Python 3.7 说明 (#32015)

5.5.0

发布日期: 2023-05-22

注意

正如 Apache Airflow 提供者支持政策中所述,此版本的提供者仅适用于 Airflow 2.4+。

杂项

  • 提高提供者中的最低 Airflow 版本要求 (#30917)

5.4.0

发布日期:2023-01-05

特性

  • Bring back psycopg2-binary as dependency instead of psycopg (#28316)

5.3.1

发布日期:2022-11-29

Bug 修复

  • common.sql 提供程序提升至 1.3.1 (#27888)

5.3.0

发布日期:2022-11-18

注意

正如 Apache Airflow 提供程序支持策略中所述,此版本的提供程序仅适用于 Airflow 2.3+。

杂项 (Misc)

  • 将所有提供程序的最低 airflow 版本移至 2.3.0 (#27196)

功能

  • PostgresHook: Added ON CONFLICT DO NOTHING statement when all target fields are primary keys (#26661)

  • 添加 SQLExecuteQueryOperator (#25717)

  • Rename schema to database in PostgresHook (#26744)

5.2.2

发布日期:2022-10-01

杂项

  • common-sql 添加 common-sql 下限 (#25789)

5.2.1

发布日期:2022-09-08

Bug 修复

  • Bump dep on common-sql to fix issue with SQLTableCheckOperator (#26143)

5.2.0

发布日期:2022-08-14

特性 (Features)

  • Use only public AwsHook's methods during IAM authorization (#25424)

  • DbApiHook.run() 方法与其重写方法进行统一 (#23971)

5.1.0

发布日期:2022-07-16

功能特性

  • 将所有 SQL 类移动到 common-sql provider (#24836)

5.0.0

发布日期:2022-06-13

不兼容的改动

注意

此版本的 provider 仅适用于 Airflow 2.2+,详情请参阅 Apache Airflow provider 支持政策

4.1.0

发布日期:2022-03-26

功能特性

  • adds ability to pass config params to postgres operator (#21551)

Bug 修复

  • 修复错误地为所有 provider 添加的 install_requires (#22382)

4.0.1

发布日期:2022-03-19

杂项 (Misc)

  • PyPI 中添加 Trove 分类器 (Framework :: Apache Airflow :: Provider)

4.0.0

发布日期: 2022-03-10

Postgres get_uri() 返回的 URI 由 postgres:// 改为 postgresql:// 前缀,这是 SQLAlchemy 1.4.0+ 唯一受支持的前缀。任何使用 get_uri() 并期望 postgres:// 前缀的代码都需要相应更新。

不兼容的改动

  • Replaces the usage of postgres:// with postgresql:// (#21205)

功能

  • 添加更多 SQL 模板字段渲染器 (#21237)

  • 为新 SQL 词法分析器添加条件性 'template_fields_renderers' 检查 (#21403)

杂项 (Misc)

  • 支持 Python 3.10

3.0.1

杂项

  • Make DbApiHook use get_uri from Connection (#21764)

2.4.0

发布日期: 2021-12-06

功能特性

  • 19489 - Pass client_encoding for postgres connections (#19827)

  • Amazon provider 移除弃用,第二次尝试 (#19815)

Bug 修复

2.3.0

发布日期: 2021-10-05

特性

  • S3ToRedshift 算子上添加 upsert 方法 (#18027)

Bug Fixes(错误修复)

  • Fix example dag of PostgresOperator (#18236)

2.2.0

发布日期:2021-09-03

功能

  • Make schema in DBApiHook private (#17423)

杂项

  • Airflow 2.2.0 优化连接导入

2.1.0 (YANKED)

警告

This release has been yanked with a reason: The postgres operator seem to conflict with earlier versions of Airflow

功能特性

  • Add schema as DbApiHook instance attribute (#16521)

2.0.0

发布日期:2021-06-23

不兼容的改动

  • 自动应用 apply_default 装饰器 (#15667)

警告

由于移除了 apply_default 装饰器,此版本的提供程序需要 Airflow 2.1.0+。如果您的 Airflow 版本 < 2.1.0,并且您想要安装此提供程序版本,请先将 Airflow 升级到至少 2.1.0 版本。否则,您的 Airflow 软件包版本将自动升级,并且您必须手动运行 airflow upgrade db 来完成迁移。

特性

  • PostgresHook: deepcopy connection to avoid mutating connection obj (#15412)

  • postgres_hook_aws_conn_id (#16100)

1.0.2

发布日期:2021-05-06

  • Do not forward cluster-identifier to psycopg2 (#15360)

1.0.1

发布日期:2021-02-08

已更新文档和 README 文件。新增了 Postgres Operator 的使用指南。

1.0.0

发布日期: 2020-12-14

提供程序的初始版本。

此条目是否有帮助?