4.6 (final from cvs) works flawlessly as I had expected. On 7.2.3 that is.
I tried 4.7 on 7.3.1 and it gives the same error the as on 7.2.3, of course, but it returns a slightly different error message (which it is too late at night for me to attempt to debug now).
Here is the new message:
ERROR: apm_packages_package_key_fk referential integrity violation - key referenced from apm_packages not found in apm_package_types
ERROR: ExecInsert: Fail to add null value in not null attribute object_id
WARNING: Error occurred while executing PL/pgSQL function acs_permission__grant_permission
WARNING: line 17 at SQL statement
Could this have to do with the infamous PG bug regarding foreign key constraints and transactions inside transactions (or somthing like that - can't remember exactly what it was)?