# Pigsty v3.0.2

> 精简安装模式，PolarDB 15支持，监控视图更新

---

LLMS 索引： [llms.txt](/zh/llms.txt)

---

**v3\.0\.2 · 2024-09-07**
- [查看发布](https://github.com/pgsty/pigsty/releases/tag/v3.0.2)
- [源码 · tar\.gz](https://github.com/pgsty/pigsty/archive/refs/tags/v3.0.2.tar.gz)
- [源码 · zip](https://github.com/pgsty/pigsty/archive/refs/tags/v3.0.2.zip)
- [pgsty\/pigsty](https://github.com/pgsty/pigsty)

## 特性

- [精简安装模式](https://pigsty.io/docs/setup/slim/)：使用 `slim.yml` 进行最精简的 HA PGSQL 部署。
- [PolarDB PG 15](https://github.com/ApsaraDB/PolarDB-for-PostgreSQL) 的原生支持。
- 优化 `monitor.pg_table_bloat` 与 `monitor.pg_index_bloat`，使用安全定义包装函数规避 PolarDB 统计视图权限问题。
- 在各模块的监控注册阶段，尊重 `prometheus_enabled` 与 `grafana_enabled` 配置选项，关闭时不再注册。
- 在 `/etc/profile.d/pgsql.sh` 中添加 `PGDATABASE` 与 `PGPORT` 环境变量，设置为 `pg_primary_db`（默认 `postgres`）

## 变更

- 在 Pigsty PGSQL 仓库中移除 PolarDB 11 与 CloudberryDB 1.5.4 的 RPM/APT 包。
- 使用专用的仓库分发 PolarDB 15 与 CloudberryDB 1.6.0 的 RPM/APT 包。

## 问题修复

- 修复 Redis 的 `/etc/tmp.files.d` 文件名错误。
- 在管理 pgbouncer 用户时，设置 `PGHOST` 与 `PGPORT` 环境变量。
- 临时移除 `pg_snakeoil` 扩展支持，因为 EL8 上游源 `clamv` 出现依赖缺失问题。
- 移除 `pgsql` 角色的 Notify / Handler，以兼容更老的 Ansible 2.9 版本。

## 信息来源

- [GitHub Release](https://github.com/pgsty/pigsty/releases/tag/v3.0.2)
- [Pigsty v3.0 发布文章](https://pigsty.cc/blog/pigsty/v3.0/)
- [历史 About / 发布注记](https://pigsty.cc/docs/about/release/#v302)
- [源码对比：`v3.0.1...v3.0.2`](https://github.com/pgsty/pigsty/compare/v3.0.1...v3.0.2)
