Task: Add NOTICE logging support to sqlgen
This page documents a task in the sqlgen improvements story. It captures the goal, current status, acceptance, and any notes or results.
1. Goal
Add Postgres NOTICE-processor support to sqlgen so PL/pgSQL RAISE NOTICE surfaces in client logs.
2. Status
| Field | Value |
|---|---|
| State | DONE |
| Parent story | sqlgen improvements |
| Now | Completed 2026-02-01. |
| Waiting on | None. |
| Next | None. |
| Last touched | 2026-02-01 |
3. Acceptance
- Upstream proposal raised:
getml/sqlgen#118. - Implementation PR open upstream:
getml/sqlgen#120.
4. Plan
Captured during execution; cleared into the parent story on close.
5. Notes
Closes a long-standing visibility gap — PL/pgSQL functions were emitting useful diagnostic NOTICEs that nothing on the client side ever saw.
6. Result
Upstream PR open; waiting for review.