Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f9a1349

Browse files
committed
Fix build without EXEC_BACKEND
1 parent 5de02c2 commit f9a1349

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/backend/postmaster/postmaster.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -931,11 +931,13 @@ PostmasterMain(int argc, char *argv[])
931931
ExitPostmaster(1);
932932
}
933933

934+
#ifdef EXEC_BACKEND
934935
if (IsOnlineUpgrade)
935936
{
936937
read_backend_variables("postmaster.params", NULL);
937938
RegisterUnlinkLockFileCallback();
938939
}
940+
#endif
939941

940942
/*
941943
* Locate the proper configuration files and data directory, and read
@@ -1075,12 +1077,14 @@ PostmasterMain(int argc, char *argv[])
10751077
/*
10761078
* Set up shared memory and semaphores.
10771079
*/
1080+
#ifdef EXEC_BACKEND
10781081
if (IsOnlineUpgrade)
10791082
{
10801083
PGSharedMemoryReAttach();
10811084
RestoreBackendList();
10821085
}
10831086
else
1087+
#endif
10841088
{
10851089
/*
10861090
* Now that loadable modules have had their chance to register background

0 commit comments

Comments
 (0)