Module bgworkers

Source
Expand description

Safely create Postgres Background Workers, including with full SPI support

See: https://www.postgresql.org/docs/current/bgworker.html

Structs§

BackgroundWorker
Static interface into a running Background Worker
BackgroundWorkerBuilder
A builder-style interface for creating a new Background Worker
DynamicBackgroundWorker
Dynamic background worker handle
SignalWakeFlags
Flags to indicate when a BackgroundWorker should be awaken
TerminatingDynamicBackgroundWorker
Handle of a dynamic background worker that is being terminated with DynamicBackgroundWorker::terminate. Only allows waiting for shutdown.

Enums§

BackgroundWorkerStatus
Dynamic background worker status
BgWorkerStartTime
The various points in which a BackgroundWorker can be started by Postgres

Statics§

PREV_SHMEM_STARTUP_HOOK

Type Aliases§

Pid
PID