1/*--------------------------------------------------------------------
3 * POSTGRES pluggable background workers internals
5 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
6 * Portions Copyright (c) 1994, Regents of the University of California
9 * src/include/postmaster/bgworker_internals.h
10 *--------------------------------------------------------------------
12#ifndef BGWORKER_INTERNALS_H
13#define BGWORKER_INTERNALS_H
22 * Maximum possible value of parallel workers.
24 #define MAX_PARALLEL_WORKER_LIMIT 1024
27 * List of background workers, private to postmaster.
29 * All workers that are currently running will also have an entry in
54/* Entry point for background worker processes */
57#endif /* BGWORKER_INTERNALS_H */
void ReportBackgroundWorkerPID(RegisteredBgWorker *rw)
void ReportBackgroundWorkerExit(RegisteredBgWorker *rw)
void ResetBackgroundWorkerCrashTimes(void)
void BackgroundWorkerShmemInit(void)
struct RegisteredBgWorker RegisteredBgWorker
pg_noreturn void BackgroundWorkerMain(const void *startup_data, size_t startup_data_len)
void ForgetBackgroundWorker(RegisteredBgWorker *rw)
PGDLLIMPORT dlist_head BackgroundWorkerList
void BackgroundWorkerStopNotifications(pid_t pid)
Size BackgroundWorkerShmemSize(void)
void BackgroundWorkerStateChange(bool allow_new_workers)
void ForgetUnstartedBackgroundWorkers(void)
TimestampTz rw_crashed_at
BackgroundWorker rw_worker