We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f29b15 commit f13c5a7Copy full SHA for f13c5a7
src/backend/postmaster/postmaster.c
@@ -1376,12 +1376,14 @@ PostmasterMain(int argc, char *argv[])
1376
* First, mark them all closed, and set up an on_proc_exit function that's
1377
* charged with closing the sockets again at postmaster shutdown.
1378
*/
1379
- for (i = 0; i < MAXLISTEN; i++)
1380
- ListenSocket[i] = PGINVALID_SOCKET;
1381
-
+ if (!IsOnlineUpgrade)
+ {
+ for (i = 0; i < MAXLISTEN; i++)
1382
+ ListenSocket[i] = PGINVALID_SOCKET;
1383
+ }
1384
on_proc_exit(CloseServerPorts, 0);
1385
- if (ListenAddresses)
1386
+ if (ListenAddresses && !IsOnlineUpgrade)
1387
{
1388
char *rawstring;
1389
List *elemlist;
0 commit comments