This problem appears to be fixed. I recently did a dump/restore of openacs on pg 7.1 beta3 without touching the dumpfile, and I didn't encounter any problems. On pg 7.0.x, I always had to move the procedural languages definitions and the sysdate function to the top of the dump-file prior to restoring.