Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb7b5a18

Browse files
committed
In pg_ctl, report unexpected failure to stat() the postmaster.pid file.
Any error other than ENOENT is a bit suspicious here, and perhaps shouldnot be grounds for assuming the postmaster has failed. For the momentthough, just report it, and don't change the behavior otherwise. Theintent is mainly to try to determine why we are seeing intermittentfailures in this area on some buildfarm members.Back-patch to 9.5 where some of these failures have happened.
1 parent158d615 commitb7b5a18

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎src/bin/pg_ctl/pg_ctl.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,12 @@ test_postmaster_connection(bool do_checkpoint)
648648
structstatstatbuf;
649649

650650
if (stat(pid_file,&statbuf)!=0)
651+
{
652+
if (errno!=ENOENT)
653+
write_stderr(_("\n%s: could not stat file \"%s\": %s\n"),
654+
progname,pid_file,strerror(errno));
651655
returnPQPING_NO_RESPONSE;
656+
}
652657

653658
if (found_stale_pidfile)
654659
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp