pg_upgrade: detect stale postmaster.pid lock files

Bruce Momjian <bruce@momjian.us>

Commit: a9ceaa53be766a324e41953a78e8bd9fa408edf6
Author: Bruce Momjian <bruce@momjian.us>
Date: 2013-01-24T20:20:40Z
Releases: 9.3.0
pg_upgrade:  detect stale postmaster.pid lock files

If the postmaster.pid lock file exists, try starting/stopping the
cluster to check if the lock file is valid.

Per request from Tom.

Files