Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>PostgreSQL Migration Review — Migration GuardrailNew to Visual Studio Code? Get it now.
PostgreSQL Migration Review — Migration Guardrail

PostgreSQL Migration Review — Migration Guardrail

Phuc Apps

| (0) | Free
Review PostgreSQL migrations locally for destructive and potentially blocking changes before release.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PostgreSQL Migration Review — Migration Guardrail

Review PostgreSQL migration files before release without connecting to a database, executing SQL, or uploading source code.

Actual VS Code Pro release review

Free current-file review

Open a PostgreSQL .sql migration and run Migration Guardrail: Review Current PostgreSQL Migration. The editor receives exact-location diagnostics for:

  • DROP and TRUNCATE
  • UPDATE or DELETE without a WHERE clause, including data-changing CTEs
  • dropped or renamed columns
  • column type changes that may need a rewrite and lock review

The bundled parser understands PostgreSQL syntax rather than searching raw text. Comments, quoted identifiers, normal strings, escaped strings, dollar-quoted bodies and nested block comments do not create fake findings. Unsupported or invalid statements receive an explicit review coverage incomplete warning instead of a clean result.

Run Migration Guardrail: Open Safe Sample Migrations for a synthetic demo. The sample is opened as an untitled document and is never executed.

Optional Pro release review

Migration Guardrail Pro adds:

  • review of up to 100 .sql files in a selected migration folder, with a 2 MB limit per file
  • operational checks for non-concurrent index builds, concurrent index builds inside transactions, and required columns added without a staged backfill
  • Markdown or JSON release reports with clickable source locations and manual-check guidance
  • bounded per-rule severity overrides
  • exact finding baselines with a required reason; fingerprints change when the relevant normalized statement changes

Pricing is $1.99/week, $9.99/year, or $19.99 lifetime through Polar. Weekly and yearly plans renew until canceled. There is no free trial. One license supports up to three installations. Free current-file checks remain available without a license.

Privacy and safety

SQL is processed locally. Migration Guardrail does not ask for database credentials, connect to PostgreSQL, run repository scripts, execute migrations, or upload SQL. During optional license activation, only the license key, activation ID, product identifiers and a random installation label are sent to api.polar.sh after explicit consent. The key is stored in VS Code SecretStorage, and successful entitlement validation is cached for up to 12 hours.

Reports intentionally contain rule IDs, file locations, object names, fingerprints and guidance, but not raw SQL or literal values. Object names and filenames may still be sensitive; review reports before sharing.

Scope and limits

This is a focused PostgreSQL static reviewer, not a SQL executor, schema simulator, or proof of safety. Parser coverage is intentionally visible. Results cannot account for your PostgreSQL version, extensions, current schema, table size, data distribution, traffic, lock timeouts, deployment runner, or application behavior. Test on production-like data, take appropriate backups, inspect locks and query plans, and use a rollback plan.

The tool currently checks a deliberately small set of high-cost release hazards. It does not claim to lint all PostgreSQL syntax or replace DBA review.

Commands

  • Migration Guardrail: Review Current PostgreSQL Migration
  • Migration Guardrail Pro: Review Migration Folder
  • Migration Guardrail Pro: Review Safe Sample Release
  • Migration Guardrail Pro: Open Last Release Report
  • Migration Guardrail Pro: Baseline One Last Finding
  • Migration Guardrail: Open Safe Sample Migrations
  • Migration Guardrail: View Pro Plans
  • Migration Guardrail: Activate Pro License
  • Migration Guardrail: Deactivate Pro License

Rule IDs

Rule Meaning Access
PG001 Destructive DROP Free
PG002 TRUNCATE removes all rows Free
PG003 UPDATE/DELETE without WHERE Free
PG004 Column removal Free
PG005 Rename dependency risk Free
PG006 Type-change rewrite/lock review Free
PG101 Non-concurrent index operational risk Pro
PG102 Concurrent index inside transaction Pro
PG103 Required column without staged backfill Pro
PG900 Parser coverage incomplete Free/Pro

Development

npm test runs parser and rule tests. The runtime dependency is pinned and packaged in the VSIX. tools/run-host.py launches an isolated real VS Code extension host on port 19114. No test connects to a database.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft