- install: TRUNCATE sample tables before COPY to avoid duplicate key on re-install
- uninstall: use single SQL session with temp table for reliable DELETE
(previous version: multiple psql sessions lost temp table between calls)
- uninstall: monitor_jobs deleted via video_id JOIN videos (source schema
lacked file_uuid column, so file_uuid was NULL in live DB)
- mktemp: macOS compatible template (/tmp/name.XXXXXX.sql)
- Full cycle verified: install → uninstall → install → uninstall → install