]> 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)
commit87221867e8b8fedb347e32d3d919e62ae85edc81
tree9c932982b3b584d3cc0480f02d92a686d470aeb5
parent68c3549fb56834f47d57ef010ffbd3bdbd80b941
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