Task: Audit for uses of raw libpq

Table of Contents

This page documents a task in the sqlgen improvements story. It captures the goal, current status, acceptance, and any notes or results.

Goal

Sweep the codebase for raw libpq escapes (Claude has a habit of sneaking these in) and route everything through ores.database.

Status

Field Value
State DONE
Parent story sqlgen improvements
Now Completed 2026-02-01.
Waiting on None.
Next None.
Last touched 2026-02-01

Acceptance

  • All raw-libpq sites identified.
  • Code moved into ores.database where appropriate.
  • Remaining gaps raised as upstream sqlgen tickets.

Plan

Captured during execution; cleared into the parent story on close.

Notes

Particularly attentive on bitemporal operations — that's where the temptation is highest.

Result

Audit done; tickets filed against sqlgen for the gaps.

Emacs 29.1 (Org mode 9.6.6)