It was cvs, and I tracked it down. It is a problem with some changes in pg 7.3.
I should have updated acs before upgrading to 7.3 but I figured that running the scripts by hand would work, they don't.
I am tracking down a possible bug in apm_package_version__new, that seems to have a syntax error (extra '). I also think there is a problem with ad_verify_install that breaks on upgrades. I haven't looked at that yet, I bypassed it to get the site back up.