jaycheng113/skill-retrieval-mcp/postgres-migrations

Claude Code and agent skill by jaycheng113/skill-retrieval-mcp

Trust tier 2
  • community
LLM review pending
Source check pending

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-migrations

SKILL.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:

  1. Add the column as nullable with no default.
  2. Backfill in batches, committing between batches so the lock is never held long.
  3. Add a NOT VALID check constraint, then VALIDATE CONSTRAINT separately —

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/jaycheng113/skill-retrieval-mcp/postgres-migrations/badge)](https://verified-skill.com/skills/jaycheng113/skill-retrieval-mcp/postgres-migrations)

Something wrong with this skill or its page? Tell us.