postgres-pro by 404kidwiz/claude-supercode-skills
npx skills add https://github.com/404kidwiz/claude-supercode-skills --skill postgres-pro提供全面的 PostgreSQL 专业知识,专注于数据库管理、性能优化和高级功能实现。擅长为 PostgreSQL 部署实现最高的可靠性、性能和可扩展性,支持高可用性和高级扩展。
在以下情况下调用此技能:
在以下情况下请勿调用:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
JSONB 查询模式分析
│
├─ 包含查询(@> 操作符)?
│ └─ 使用带 jsonb_path_ops 的 GIN 索引
│ CREATE INDEX idx ON table USING GIN (column jsonb_path_ops);
│ • 比默认 GIN 索引小 2-3 倍
│ • 对 @> 包含检查更快
│ • 不支持键存在性查询(?)
│
├─ 键存在性查询(? 或 ?| 或 ?& 操作符)?
│ └─ 使用默认 GIN 操作符类
│ CREATE INDEX idx ON table USING GIN (column);
│ • 支持所有 JSONB 操作符
│ • 索引体积较大
│
├─ 特定路径频繁查询?
│ └─ 使用表达式索引
│ CREATE INDEX idx ON table ((column->>'key'));
│ • 对特定路径最有效
│ • B-tree 允许范围查询
│
└─ 需要全文档搜索?
└─ 结合 GIN + 表达式索引
• GIN 用于灵活查询
• 表达式索引用于热点路径
| 需求 | 策略 | 配置 |
|---|---|---|
| 读取扩展 | 流复制(异步) | 多个只读副本 |
| 零数据丢失 | 流复制(同步) | synchronous_commit = on |
| 表级复制 | 逻辑复制 | CREATE PUBLICATION/SUBSCRIPTION |
| 跨版本升级 | 逻辑复制 | 复制到新版本 |
| 灾难恢复 | 流复制 + WAL 归档 | PITR 能力 |
| 延迟恢复 | 延迟副本 | recovery_min_apply_delay |
性能:
配置:
复制(如适用):
扩展:
JSONB(如使用):
监控:
每周安装次数
61
代码仓库
GitHub 星标
42
首次出现
2026年1月24日
安全审计
安装于
opencode51
codex47
gemini-cli47
claude-code44
cursor42
github-copilot41
Provides comprehensive PostgreSQL expertise specializing in database administration, performance optimization, and advanced feature implementation. Excels at achieving maximum reliability, performance, and scalability for PostgreSQL deployments with high availability and advanced extensions.
Invoke this skill when:
Do NOT invoke when:
JSONB Query Pattern Analysis
│
├─ Containment queries (@> operator)?
│ └─ Use GIN with jsonb_path_ops
│ CREATE INDEX idx ON table USING GIN (column jsonb_path_ops);
│ • 2-3x smaller than default GIN
│ • Faster for @> containment checks
│ • Does NOT support key existence (?)
│
├─ Key existence queries (? or ?| or ?& operators)?
│ └─ Use default GIN operator class
│ CREATE INDEX idx ON table USING GIN (column);
│ • Supports all JSONB operators
│ • Larger index size
│
├─ Specific path frequently queried?
│ └─ Use expression index
│ CREATE INDEX idx ON table ((column->>'key'));
│ • Most efficient for specific path
│ • B-tree allows range queries
│
└─ Full document search needed?
└─ Combine GIN + expression indexes
• GIN for flexible queries
• Expression for hot paths
| Requirement | Strategy | Configuration |
|---|---|---|
| Read scaling | Streaming (async) | Multiple read replicas |
| Zero data loss | Streaming (sync) | synchronous_commit = on |
| Table-level replication | Logical | CREATE PUBLICATION/SUBSCRIPTION |
| Cross-version upgrade | Logical | Replicate to new version |
| Disaster recovery | Streaming + WAL archive | PITR capability |
| Delayed recovery | Delayed replica | recovery_min_apply_delay |
Performance:
Configuration:
Replication (if applicable):
Extensions:
JSONB (if used):
Monitoring:
Weekly Installs
61
Repository
GitHub Stars
42
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykWarn
Installed on
opencode51
codex47
gemini-cli47
claude-code44
cursor42
github-copilot41
Azure 升级评估与自动化工具 - 轻松迁移 Functions 计划、托管层级和 SKU
99,100 周安装