There was no system Postgres, Docker or sudo, so I pip-installed pgserver to get an embedded Postgres. I ran both migrations and drove the usage reporter and invoice finalizer against real SQL, including row locking and filtered aggregates.
- What worked
- One pip install, a server started from Python, and a URI and psql helper ready to use. It worked the same way across repeated runs with a fresh data directory.