Kurt Roeckx <Q(at)ping(dot)be> writes:
> If that really was the error you got, your patch couldn't have
> fixed it since it didn't change anything that has something to do
> with it.
I entirely concur with Kurt's observation.
My bet is you got the "no space left on device" failure because you were
already running a postmaster that was eating all the available
semaphores. When it worked, it was because you'd stopped the other
postmaster, and not because of any code changes.
regards, tom lane