jaycheng113/skill-retrieval-mcp/postgres-migrations
Claude Code and agent skill by jaycheng113/skill-retrieval-mcp
- community
Checking that the SKILL.md file is still in the repository.
Apply schema changes to a live PostgreSQL database without taking downtime or locking out writers.
Install
npx vskill@latest install jaycheng113/skill-retrieval-mcp/postgres-migrationsSKILL.md
PostgreSQL migrations without downtime
Adding a NOT NULL column to a large table rewrites it under an ACCESS EXCLUSIVE lock, which blocks every reader and writer for the duration. Split it instead:
- Add the column as nullable with no default.
- Backfill in batches, committing between batches so the lock is never held long.
- Add a
NOT VALIDcheck constraint, thenVALIDATE CONSTRAINTseparately —
validation takes only a SHARE UPDATE EXCLUSIVE lock.
Dropping a column is metadata-only and safe. Renaming one is not: the old and new name cannot both be live, so deploy a read-both/write-both shim first.
Always set lock_timeout before DDL. Without it a migration that cannot acquire its lock will queue behind a long transaction and block everything behind it too.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingtests/e2e/corpus/databases/postgres-migrations/SKILL.md
Popularity
- Repository stars
- 134
- Repository forks
- 22
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jaycheng113/skill-retrieval-mcp/postgres-migrations)