Background worker

A user-defined process which runs as part of the main postgres server process

A background worker (commonly abbreviated to BGW) is a user-defined process which runs as part of the main postgres server process.

Background worker functionality was added in PostgreSQL 9.3.

Change history

Examples

Some sample code can be found in the test module "worker_spi" (src/test/modules/worker_spi).

Categories

Background worker

See also

max_worker_processes, worker_spi