-
- Downloads
Allow discovery of whether a dynamic background worker is running.
Using the infrastructure provided by this patch, it's possible either to wait for the startup of a dynamically-registered background worker, or to poll the status of such a worker without waiting. In either case, the current PID of the worker process can also be obtained. As usual, worker_spi is updated to demonstrate the new functionality. Patch by me. Review by Andres Freund.
Showing
- contrib/worker_spi/worker_spi--1.0.sql 1 addition, 1 deletioncontrib/worker_spi/worker_spi--1.0.sql
- contrib/worker_spi/worker_spi.c 24 additions, 2 deletionscontrib/worker_spi/worker_spi.c
- doc/src/sgml/bgworker.sgml 49 additions, 5 deletionsdoc/src/sgml/bgworker.sgml
- src/backend/commands/async.c 0 additions, 2 deletionssrc/backend/commands/async.c
- src/backend/postmaster/bgworker.c 204 additions, 2 deletionssrc/backend/postmaster/bgworker.c
- src/backend/postmaster/postmaster.c 52 additions, 0 deletionssrc/backend/postmaster/postmaster.c
- src/backend/storage/ipc/procsignal.c 12 additions, 0 deletionssrc/backend/storage/ipc/procsignal.c
- src/include/miscadmin.h 2 additions, 0 deletionssrc/include/miscadmin.h
- src/include/postmaster/bgworker.h 20 additions, 1 deletionsrc/include/postmaster/bgworker.h
- src/include/postmaster/bgworker_internals.h 2 additions, 0 deletionssrc/include/postmaster/bgworker_internals.h
- src/include/postmaster/postmaster.h 1 addition, 0 deletionssrc/include/postmaster/postmaster.h
- src/include/storage/procsignal.h 1 addition, 0 deletionssrc/include/storage/procsignal.h
Loading
Please register or sign in to comment