Lars, if you are running on postgresql 7.2 it might be related to
this bug:
https://openacs.org/sdm/one-baf.tcl?baf_id=1347
which I have a patch for but which has not been applied since
I did not make the corresponding changes in the oracle version.
See the patch to see what is going on...
(although looking at apm_upgrade_script_compare it looks like
the compare is being done in tcl so the collating order in postresql
shoudl not matter). Huh