Update nexus wiki content

This commit is contained in:
2026-05-03 05:42:06 +08:00
parent 90f3811b83
commit 111bc65b7b
707 changed files with 32306 additions and 7289 deletions

View File

@@ -0,0 +1,33 @@
---
title: "PostgreSQL"
type: entity
tags: [database, postgresql, rdbms, open-source, backend]
last_updated: 2026-05-01
---
# PostgreSQL
## Overview
PostgreSQL 是一个功能强大的开源关系型数据库管理系统RDBMS以扩展性、标准兼容性和高级特性著称是 The Agency 工程 Agent 的首选数据库。
## Key Features Relevant to Agency Agents
- **EXPLAIN ANALYZE**:查询计划分析
- **B-tree / GiST / GIN / 部分索引 / 复合索引**:多种索引策略
- **CONCURRENTLY**:创建索引不锁表(零停机生产变更)
- **json_agg / json_build_object**JSON 聚合函数,支持嵌套查询
- **BIGSERIAL**64位自增主键类型
- **pg_stat_statements**:慢查询监控扩展
## Aliases
- Postgres
- PG
## Source
- [[engineering-database-optimizer]]
## Connections
- [[engineering-backend-architect]] — 后端架构师首选数据库
- [[IndexingStrategies]] — PostgreSQL 索引类型最全面
- [[engineering-sre]] — SRE 需掌握 pg_stat_statements 监控