postgresql
PostgreSQL — advanced SQL, indexing, extensions, partitioning, EXPLAIN ANALYZE.
от skeletorflet★ 48 звёзд на GitHub
Установить postgresql в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
postgresql
Advanced SQL
- CTEs:
WITH cte AS (SELECT ...) SELECT * FROM ctefor readable queries. - Window functions:
ROW_NUMBER() OVER (PARTITION BY dept ORDER BY salary DESC). - Recursive CTEs:
WITH RECURSIVEfor tree/graph traversal queries. LATERALsubqueries,GROUPING SETS,FILTERclause for conditional aggregates.
Indexing
- B-tree (default) for equality/range; GiST for full-text/geometric; GIN for array/JSON/tsvector; BRIN for large sequential data.
- Partial indexes:
CREATE INDEX active_users ON users(created_at) WHERE status = 'active'. - Covering indexes with
INCLUDE (col1, col2)for index-only scans.
Extensions
- PostGIS: spatial queries —
ST_Distance,ST_Within,ST_AsGeoJSON. - pgvector:
CREATE INDEX ON items USING ivfflat (embedding vector_cosine_ops)for ANN. - pg_cron: schedule SQL jobs via cron syntax.
uuid-ossp,pg_trgm,citext,hstorefor common utilities.
Partitioning
- Range/list/hash partitioning via
PARTITION BY RANGE (created_at). - Detach/attach partitions for zero-downtime data movement.
- Partition pruning for query performance on large tables.
EXPLAIN ANALYZE
EXPLAIN (ANALYZE, BUFFERS, FORMAT JSON)for execution plan analysis.- Focus on sequential scans, nested loop joins, high row estimates.
Tools
- psql:
\dt,\d table,\l,\di,\x autofor expanded display. - pgAdmin: GUI with query planner visualizer and dashboard.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл postgresql?
PostgreSQL — advanced SQL, indexing, extensions, partitioning, EXPLAIN ANALYZE.
Как установить скилл postgresql?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл postgresql запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
patterns
AnthropicFind patterns worth sharing from recent PRs and repo history, both repeats to fix and good practices worth spreading. Use when a champion wants to know what…
copilot-cli-quickstart
GitHubUse this skill when someone wants to learn GitHub Copilot CLI from scratch. Offers interactive step-by-step tutorials with separate Developer and…
vardoger-analyze
GitHubUse when the user asks to personalize the GitHub Copilot CLI assistant, adapt Copilot to their style, use vardoger, or analyze their Copilot CLI conversation…
policy-lookup
AnthropicFind and explain company policies in plain language. Trigger with "what's our PTO policy", "can I work remotely from another country", "how do expenses work"…