You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need a way to store table and column stats and update them
Do a single json for all table stats (_stats/tables.json), sorted by table name (or even use it as key). document in skill how to read. also add a get-stats command that reads stats from json for given tables
Maybe a json per table in a subfolder _stats for column stats
PR ready for review: #42 (CI green, version 0.10.0).
pgdb update-stats database/ --url ... [--table schema.name] [--exact] [--analyze] writes database/_stats/_tables.json (one sorted file keyed by schema.table) and one database/_stats/<schema.table>.json per table for column stats. A full run prunes dropped tables.
pgdb get-stats database/ [schema.table ...] [--no-columns] prints the stored stats as JSON, no DB needed.
Activity
aersam commentedon Sep 30, 2026
Working on this: draft PR #42 (session https://claude.ai/code/session_01XCPhFUUdP3NVRQunZ8hbyb)
Add update-stats and get-stats commands, bump to 0.10.0 (#41)
Rename stats table file to _tables.json so it sorts first (#41)
Stats: prune dropped tables on full run, validate --table up front, p…
Fix ty errors in stats row handling (#41)
aersam commentedon Sep 30, 2026
PR ready for review: #42 (CI green, version 0.10.0).
pgdb update-stats database/ --url ... [--table schema.name] [--exact] [--analyze]writesdatabase/_stats/_tables.json(one sorted file keyed byschema.table) and onedatabase/_stats/<schema.table>.jsonper table for column stats. A full run prunes dropped tables.pgdb get-stats database/ [schema.table ...] [--no-columns]prints the stored stats as JSON, no DB needed.Merge pull request #42 from bmsuisse/worktree-table-stats