mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Someone (possibly me) foolishly reduced the response for failing
to create a TCP/IP socket from FATAL to LOG. This was unwise; historically we have expected socket conflicts to abort postmaster startup. Conflicts on port numbers with another postmaster can only be detected reliably at the TCP socket level.
This commit is contained in:
@ -37,7 +37,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.344 2003/09/11 18:30:39 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.345 2003/09/12 19:33:59 tgl Exp $
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
*
|
*
|
||||||
@ -753,7 +753,7 @@ PostmasterMain(int argc, char *argv[])
|
|||||||
UnixSocketDir,
|
UnixSocketDir,
|
||||||
ListenSocket, MAXLISTEN);
|
ListenSocket, MAXLISTEN);
|
||||||
if (status != STATUS_OK)
|
if (status != STATUS_OK)
|
||||||
ereport(LOG,
|
ereport(FATAL,
|
||||||
(errmsg("could not create listen socket for \"%s\"",
|
(errmsg("could not create listen socket for \"%s\"",
|
||||||
curhost)));
|
curhost)));
|
||||||
if (endptr)
|
if (endptr)
|
||||||
@ -772,7 +772,7 @@ PostmasterMain(int argc, char *argv[])
|
|||||||
UnixSocketDir,
|
UnixSocketDir,
|
||||||
ListenSocket, MAXLISTEN);
|
ListenSocket, MAXLISTEN);
|
||||||
if (status != STATUS_OK)
|
if (status != STATUS_OK)
|
||||||
ereport(LOG,
|
ereport(FATAL,
|
||||||
(errmsg("could not create TCP/IP listen socket")));
|
(errmsg("could not create TCP/IP listen socket")));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user