]> granicus.if.org Git - postgresql/commit
In pg_ctl, report unexpected failure to stat() the postmaster.pid file.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 25 Jul 2015 19:58:14 +0000 (15:58 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 25 Jul 2015 19:58:14 +0000 (15:58 -0400)
commitb7b5a1899aa3caeef30117f8e36c1f0e68e8847a
treeed9e94f8c17b283cf5aad21554f33ed378607982
parent158d61534e98638106d85bdb1de5dbdb56bc8057
In pg_ctl, report unexpected failure to stat() the postmaster.pid file.

Any error other than ENOENT is a bit suspicious here, and perhaps should
not be grounds for assuming the postmaster has failed.  For the moment
though, just report it, and don't change the behavior otherwise.  The
intent is mainly to try to determine why we are seeing intermittent
failures in this area on some buildfarm members.

Back-patch to 9.5 where some of these failures have happened.
src/bin/pg_ctl/pg_ctl.c