Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Postgres Patterns?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/karthikrshet-postgres-patterns)
---
name: postgres-patterns
description: "PostgreSQL patterns: indexing (btree, GIN, partial), JSONB, constraints, RLS, advisory locks and connection pooling."
tags: [database]
---
# Postgres Patterns
## When to use
- Postgres-backed apps
## Procedure
1. Use constraints for invariants
2. Choose index types by query
3. Use RLS for tenancy
4. Use a pooler (PgBouncer) for serverless
5. Monitor bloat and vacuum
## Checklist
- [ ] Pool sizes set
- [ ] Constraints enforce invariants
## Anti-patterns
- Storing everything in JSONB