# Pigsty v1.3.1

> 仪表盘打磨、安全修复与软件升级

---

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

---

**v1\.3\.1 · 2021-12-10**
- [查看发布](https://github.com/pgsty/pigsty/releases/tag/v1.3.1)
- [源码 · tar\.gz](https://github.com/pgsty/pigsty/archive/refs/tags/v1.3.1.tar.gz)
- [源码 · zip](https://github.com/pgsty/pigsty/archive/refs/tags/v1.3.1.zip)
- [pgsty\/pigsty](https://github.com/pgsty/pigsty)

## 监控

- PGSQL & PGCAT 仪表盘改进
- 优化 pgcat 实例 & pgcat 数据库的布局
- 在 pgsql 实例仪表盘中添加关键指标面板，与 pgsql 集群保持一致
- 在 pgcat 数据库中添加表/索引膨胀面板，移除 pgcat 膨胀仪表盘
- 在 pgcat 数据库仪表盘中添加索引信息
- 修复在 grafana 8.3 中的损坏面板
- 在 nginx 主页中添加 redis 索引

## 部署

- 新的 `infra-demo.yml` 剧本用于一次性引导
- 使用 `infra-jupyter.yml` 剧本部署可选的 jupyter lab 服务器
- 使用 `infra-pgweb.yml` 剧本部署可选的 pgweb 服务器
- 在 meta 节点上新的 `pg` 别名，可以从 admin 用户启动 postgres 集群（除了 postgres）
- 根据 `timescaledb-tune` 的建议调整所有 patroni 配置模板中的 `max_locks_per_transactions`
- 在配置模板中添加 `citus.node_conninfo: 'sslmode=prefer'` 以便在没有 SSL 的情况下使用 citus
- 在 pgdg14 包列表中添加所有扩展（除了 pgrouting）
- 将 node_exporter 升级到 v1.3.1
- 将 PostgREST v9.0.0 添加到包列表。从 postgres 模式生成 API。

## 错误修复

- Grafana 的安全漏洞（升级到 v8.3.1 [问题](https://grafana.com/blog/2021/12/07/grafana-8.3.1-8.2.7-8.1.8-and-8.0.7-released-with-high-severity-security-fix/))
- 修复 `pg_instance` & `pg_service` 在 `register` 角色中从剧本的中间开始时的问题
- 修复在没有 `pg_cluster` 变量存在的主机上 nginx 主页渲染问题
- 在升级到 grafana 8.3.1 时修复样式问题

## 信息来源

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