diff options
| author | Heikki Linnakangas | 2023-12-03 14:38:54 +0000 |
|---|---|---|
| committer | Heikki Linnakangas | 2023-12-03 14:38:54 +0000 |
| commit | 388491f1e5e63fe97c7cca26d18b64321973d423 (patch) | |
| tree | 5c74175b99ab8d9d6fcd13b4eb045e3e9f742a01 /src/include/postmaster | |
| parent | 69d903367cdea188bf865f4edd72a186cda9e689 (diff) | |
Pass BackgroundWorker entry in the parameter file in EXEC_BACKEND mode
The BackgroundWorker struct is now passed the same way as the Port
struct. Seems more consistent.
This makes it possible to move InitProcess later in SubPostmasterMain
(in next commit), as we no longer need to access shared memory to read
background worker entry.
Reviewed-by: Tristan Partin, Andres Freund, Alexander Lakhin
Discussion: https://www.postgresql.org/message-id/7a59b073-5b5b-151e-7ed3-8b01ff7ce9ef@iki.fi
Diffstat (limited to 'src/include/postmaster')
| -rw-r--r-- | src/include/postmaster/bgworker_internals.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/include/postmaster/bgworker_internals.h b/src/include/postmaster/bgworker_internals.h index 09df054fcce..323f1e07291 100644 --- a/src/include/postmaster/bgworker_internals.h +++ b/src/include/postmaster/bgworker_internals.h @@ -57,8 +57,4 @@ extern void ResetBackgroundWorkerCrashTimes(void); /* Entry point for background worker processes */ extern void BackgroundWorkerMain(void) pg_attribute_noreturn(); -#ifdef EXEC_BACKEND -extern BackgroundWorker *BackgroundWorkerEntry(int slotno); -#endif - #endif /* BGWORKER_INTERNALS_H */ |
