
Postgresql Optimization
PostgreSQL-optimization is a development assistant that provides expert guidance on PostgreSQL-specific features and optimization patterns for developers working with PostgreSQL databases. It covers advanced capabilities including JSONB operations, array types, window functions, full-text search, custom data types, and the PostgreSQL extensions ecosystem. The skill solves the problem of helping developers leverage PostgreSQL's unique features effectively by offering concrete examples and best practices for performance tuning and complex queries.
- install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
- 7
- skills.sh installs
- 16.9K
- GitHub stars
- 41K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add github/awesome-copilot --skill postgresql-optimization --agent claude-codeInstalls into .claude/skills of the current project.
Files
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
-- 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 events WHERE data ? 'user_id';
Array Operations
-- PostgreSQL arrays
CREATE TABLE posts (
id SERIAL PRIMARY KEY,
tags TEXT[],
categories INTEGER[]
);
-- Array queries and operations
SELECT * FROM posts WHERE 'postgresql' = ANY(tags);
SELECT * FROM posts WHERE tags && ARRAY['database', 'sql'];
SELECT * FROM posts WHERE array_length(tags, 1) > 3;
-- Array aggregation
SELECT array_agg(DISTINCT category) FROM posts, unnest(categories) as category;
Sponsors
Details
- Repository
- github.com/github/awesome-copilot
- Categories
- Backend & APIs, Git & Pull Requests, AI & Agent Building, Databases
More from github/awesome-copilot
All 318- Dotnet Best Practices16.1K
- Sql Optimization16K
- Sql Code Review15.6K
- Chrome Devtools15.4K
- Microsoft Docs15K
- Playwright Explore Website14.8K
- Azure Devops Cli14.8K
- Javascript Typescript Jest14.5K
- Nuget Manager14.5K
- Microsoft Code Reference14.4K
- Web Design Reviewer14.3K
- Playwright Automation Fill In Form13.7K
- Create Specification13.6K
- Game Engine13.4K
- Create Agentsmd13.3K
- Refactor Plan13K
- Pytest Coverage13K
- Penpot Uiux Design12.9K
- Memory Merger12.9K
- Postgresql Code Review12.8K
- Create Implementation Plan12.6K
- Webapp Testing12.5K
- Architecture Blueprint Generator12.3K
- Typescript Mcp Server Generator12.1K