"Marc G. Fournier" <scrappy(at)postgresql(dot)org> writes:
> ERROR: source database "template1" is being accessed by other users
> Why is this not allowed?
It's a rather lame attempt to ensure that you don't get a corrupt copy
due to the database changing while you copy it ... I'd like to find
a better way to do it ...
regards, tom lane