postgresql-optimization

仓库创建 2025年6月14日最近提交 1 个月前SkillHot 收录 22 天前
▸ 精选理由

适合需提升数据库性能和利用 PostgreSQL 特性的工程师。

这个 Skill 做什么

提供 PostgreSQL 的性能优化、类型与扩展使用建议。

针对 PostgreSQL 的特性和性能问题给出实操建议,涵盖 JSONB 查询、数组与自定义类型、range/几何类型、全文检索、window 函数和扩展生态。在写查询、设计表结构或做性能调优时用,能把数据库独有功能用得更高效。提供具体 SQL 模式和调优思路,不只是泛泛而谈。

▸ 展开 SKILL.md 英文原文

PostgreSQL-specific development assistant focusing on unique PostgreSQL features, advanced data types, and PostgreSQL-exclusive capabilities. Covers JSONB operations, array types, custom types, range/geometric types, full-text search, window functions, and PostgreSQL extensions ecosystem.

开发编程PostgreSQL优化高级特性通用
313
Stars
56
Forks
20
仓库内 Skill
+5
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/syahiidkamil/Software-Engineer-AI-Agent-Atlas/main/.claude/skills/postgresql-optimization/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/syahiidkamil/Software-Engineer-AI-Agent-Atlas/main/.claude/skills/postgresql-optimization/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# PostgreSQL Development Assistant

Expert PostgreSQL guidance for ${selection} (or entire project if no selection). Focus on PostgreSQL-specific features, optimization patterns, and advanced capabilities.

## � PostgreSQL-Specific Features

### JSONB Operations
```sql
-- Advanced JSONB queries
CREATE TABLE events (
    id SERIAL PRIMARY KEY,
    data JSONB NOT NULL,
    created_at TIMESTAMPTZ DEFAULT NOW()
);

-- GIN index for JSONB performance
CREATE INDEX idx_events_data_gin ON events USING gin(data);

-- JSONB containment and path queries
SELECT * FROM events 
WHERE data @> '{"type": "login"}'
  AND data #>> '{user,role}' = 'admin';

-- JSONB aggregation
SELECT jsonb_agg(data) FROM event
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有