Skip to content
Back to skills

Postgresql

ASecurity

PostgreSQL gotchas and version-gated facts - indexing (B-tree, GIN, GiST, BRIN, partial, expression), JSONB, EXPLAIN ANALYZE and tuning, row-level security and multi-tenancy, full-text search, partitioning, connection pooling, extensions, logical replication, pgvector and RAG. Use when designing tables or indexes for PostgreSQL, writing or reviewing raw SQL, diagnosing a slow query, or choosing a PostgreSQL feature. For EF Core query performance use the optimizing-ef-core-queries skill; for m...

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
ai-agentsgosqlexpressapidatabasesecurityperformance

Works with

  • api

Security analysis

A100/100

Pro scans all 13 files and shows the line behind each finding

Scanned November 7, 2026

npx -y skills add dmamulashvili/dotnet-agent-kit --skill postgresql --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Postgresql?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Postgresql
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dmamulashvili-postgresql/badge)](https://www.skillsdirectory.com/skills/dmamulashvili-postgresql)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: postgresql
description: PostgreSQL gotchas and version-gated facts - indexing (B-tree, GIN, GiST, BRIN, partial, expression), JSONB, EXPLAIN ANALYZE and tuning, row-level security and multi-tenancy, full-text search, partitioning, connection pooling, extensions, logical replication, pgvector and RAG. Use when designing tables or indexes for PostgreSQL, writing or reviewing raw SQL, diagnosing a slow query, or choosing a PostgreSQL feature. For EF Core query performance use the optimizing-ef-core-queries skill; for migrations follow the ef-migrations rule.
---

# PostgreSQL

Each reference lists what models get wrong about one area, with version gates and anti-hallucination rules. Read only the reference that matches the task; read several when the task spans them (a slow JSONB query needs both `jsonb-patterns` and `query-performance`).

| Task | Reference |
|---|---|
| Choosing or reviewing an index | [references/postgresql-advanced-indexing.md](references/postgresql-advanced-indexing.md) |
| Slow query, reading `EXPLAIN ANALYZE`, server settings | [references/postgresql-query-performance.md](references/postgresql-query-performance.md) |
| JSONB columns, operators, indexing, updates | [references/postgresql-jsonb-patterns.md](references/postgresql-jsonb-patterns.md) |
| Row-level security, tenant isolation | [references/postgresql-row-level-security.md](references/postgresql-row-level-security.md) |
| Full-text search (`tsvector`, `tsquery`, ranking) | [references/postgresql-full-text-search.md](references/postgresql-full-text-search.md) |
| Partitioning large tables | [references/postgresql-table-partitioning.md](references/postgresql-table-partitioning.md) |
| Connection pooling, exhaustion, timeouts | [references/postgresql-connection-management.md](references/postgresql-connection-management.md) |
| Installing or upgrading extensions | [references/postgresql-extensions.md](references/postgresql-extensions.md) |
| Logical replication | [references/postgresql-replication.md](references/postgresql-replication.md) |
| Vector similarity search with pgvector | [references/postgresql-vector-search.md](references/postgresql-vector-search.md) |
| RAG, hybrid search | [references/postgresql-genai-rag.md](references/postgresql-genai-rag.md) |

- Check the server version (`SELECT version();`) before recommending a version-gated feature.
- Schema changes (indexes, extensions, RLS policies, partitions) go through EF Core migrations, raw SQL in `migrationBuilder.Sql(...)` where EF has no API, following the `ef-migrations` rule. Don't apply DDL directly to a database.

Files in this skill

  • LICENSE.txt1.1 KB
  • SKILL.md2.6 KB
  • references/postgresql-advanced-indexing.md2 KB
  • references/postgresql-connection-management.md5.5 KB
  • references/postgresql-extensions.md2.9 KB
  • references/postgresql-full-text-search.md5.8 KB
  • references/postgresql-genai-rag.md3 KB
  • references/postgresql-jsonb-patterns.md1.9 KB
  • references/postgresql-query-performance.md2.6 KB
  • references/postgresql-replication.md6.8 KB
  • references/postgresql-row-level-security.md2.8 KB
  • references/postgresql-table-partitioning.md3.2 KB
  • references/postgresql-vector-search.md2.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.