> > Wait, maybe I can check postmaster.opts to see if another postamster
> > really exists...
>
> You can do kill(0) on the pid to see if it is actually a real pid.
> Rather than playing with the port, just check the pid because the
> postmaster could be startup up by not on the port yet.
Oh, I see your point now.
--
Tatsuo Ishii