owenrusk.dev

casebench

test cases straight onto the board.

git clone https://owenrusk.dev/casebench.git

commit 04d64ce901e58eaed82b59d9428f3a1cb9d3a649
parent 6d91ae011f7271c920f7cf632d70f2dc3fe0972e
author Owen Rusk <owen@papermothgames.com>
date   2026-04-28 16:46:12 -0500
pgstore: connect as application_name casebench

so it shows up as itself in pg_stat_activity.
casebench/pgstore.py+1-1
diff --git a/casebench/pgstore.py b/casebench/pgstore.py
index b0429eb..d66f295 100644
--- a/casebench/pgstore.py
+++ b/casebench/pgstore.py
@@ -20,7 +20,7 @@ class PgStore:
     # the hub's postgres, underneath the runtime.
 
     def __init__(self, dsn: str) -> None:
-        self.conn = psycopg.connect(dsn, autocommit=True)
+        self.conn = psycopg.connect(dsn, autocommit=True, application_name="casebench")
 
     def close(self) -> None:
         self.conn.close()