/ai-stuff:postgres-upgradesfrom ai-stuff
Plan and run PostgreSQL upgrades: applying minor releases (and their reindex or manual steps), choosing a major-upgrade method (dump/restore, pg_upgrade --link, logical replication blue/green cutover), managed-cloud upgrade paths, upgrading replicas, post-upgrade ANALYZE and plan regressions, extension compatibility, and OS/glibc/ICU collation changes that require reindexing. Use when moving a Postgres database to a new minor or major version, or to a new OS image.
Ships in ai-stuff. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A playbook distilled from Scaling Postgres. Case studies, numbers, and
version notes are in reference.md. For general replication
setup, use postgres-replication-ha.
REINDEX of specific index types, or other manual steps.| Situation | Method | Downtime |
|---|---|---|
| Small database | pg_dump / pg_restore (parallel -j) | Proportional to size |
| Same OS image, minutes of downtime OK | pg_upgrade --link (or --clone; PG18 adds --swap) | Minutes, mostly independent of size |
| Large DB, near-zero downtime, or also changing OS/hardware | Logical replication to a new cluster, then cut over | Seconds (the cutover) |
| Managed cloud | Provider's in-place upgrade or blue/green feature | Varies; read the fine print |
The host's current preference for large production systems is the logical replication cutover. It also rebuilds every table and index compactly, and it sidesteps collation problems.
pg_upgrade --check against a copy, and confirm extensions are installed
in the new version.--link --jobs N.ANALYZE immediately.
vacuumdb --all --analyze-in-stages to get rough statistics fast.ANALYZE.pg_stat_statements and compare against
pre-upgrade baselines.pg_dump --schema-only).PAUSE, or app maintenance mode).pg_collation, pg_database.datcollversion) and
consider ICU or the PG17 built-in provider for new clusters.ANALYZE done (including partitioned parents and extended statistics).ALTER EXTENSION ... UPDATE).What SKILL.md sets; muted values are Claude Code's defaults
25 skills in this plugin
/brainstormingYou MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation./codebase-designShared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary./dispatching-parallel-agentsUse ONLY when the developer has explicitly told you to dispatch subagents — never infer or self-authorize it. Splits 2+ independent tasks across isolated subagents, assigns them cheap models, and polls at a per-harness cadence that preserves prompt cache (Claude Code vs Codex/opencode).Other plugins' skills for the same job
npx claudepluginhub pauldotsh/ai-stuff --plugin ai-stuff