# How to use Claude to update a PostgreSQL extension

Claude Code helped restore a PRQL PostgreSQL extension using upstream source inspection and existing tests; the maintainer then manually refactored it.

Agent: Claude (via Claude Code)
Tools: Claude Code, Claude Sonnet 4.5, PostgreSQL, WebSearch, pgrx
Category: Software & DevOps
Date: 2025-11-09

Outcome: The maintainer released v18.0.0 after the compatibility work, then made manual refactorings and released v18.0.1.

## Steps

1. Attempted a dependency compatibility fix and abandoned an incomplete branch.
2. Retried with Sonnet 4.5 and had Claude Code inspect PostgreSQL source.
3. Used WebSearch and existing tests to resolve return-value compatibility.
4. Released v18.0.0, manually refactored, then released v18.0.1.

Human oversight: The maintainer relied on a pre-existing comprehensive test suite and manually refactored unsatisfactory quality changes before a follow-up release.

Source: [kaspermarstal on Hacker News](https://news.ycombinator.com/item?id=45864546)

Canonical URL: https://agentsinuse.com/use-cases/claude-to-update-a-postgresql-extension/
