diff options
| author | Robert Haas <rhaas@postgresql.org> | 2013-08-01 12:20:31 -0400 |
|---|---|---|
| committer | Robert Haas <rhaas@postgresql.org> | 2013-08-01 12:20:31 -0400 |
| commit | 149e38e5ee02731d505946ced0f7bfc547c0e374 (patch) | |
| tree | 51b828aaaa7d3c13b32898a5ead4e560cc650dca /src/include/postmaster | |
| parent | 813fb0315587d32e3b77af1051a0ef517d187763 (diff) | |
| download | postgresql-149e38e5ee02731d505946ced0f7bfc547c0e374.tar.gz | |
Assorted bgworker-related comment fixes.
Per gripes by Amit Kapila.
Diffstat (limited to 'src/include/postmaster')
| -rw-r--r-- | src/include/postmaster/bgworker.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/include/postmaster/bgworker.h b/src/include/postmaster/bgworker.h index b260dc5e4e..0bb897b8f3 100644 --- a/src/include/postmaster/bgworker.h +++ b/src/include/postmaster/bgworker.h @@ -6,11 +6,13 @@ * including normal transactions. * * Any external module loaded via shared_preload_libraries can register a - * worker. Then, at the appropriate time, the worker process is forked from - * the postmaster and runs the user-supplied "main" function. This code may - * connect to a database and run transactions. Once started, it stays active - * until shutdown or crash. The process should sleep during periods of - * inactivity. + * worker. Workers can also be registered dynamically at runtime. In either + * case, the worker process is forked from the postmaster and runs the + * user-supplied "main" function. This code may connect to a database and + * run transactions. Once started, it stays active until shutdown or crash; + * unless the restart interval is declared as BGW_NEVER_RESTART and the + * process exits with a return code of 1; workers that do this are + * automatically unregistered by the postmaster. * * If the fork() call fails in the postmaster, it will try again later. Note * that the failure can only be transient (fork failure due to high load, |
