Skip to content

Commit 5cbe935

Browse files
committed
docs: Clarify flag dependencies for background workers.
BGWORKER_BACKEND_DATABASE_CONNECTION can only be used if BGWORKER_SHMEM_ACCESS is also used. Michael Paquier, with some tweaks by me.
1 parent 0d17956 commit 5cbe935

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

doc/src/sgml/bgworker.sgml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ typedef struct BackgroundWorker
6464
<literal>BGWORKER_SHMEM_ACCESS</literal> (requesting shared memory access)
6565
and <literal>BGWORKER_BACKEND_DATABASE_CONNECTION</literal> (requesting the
6666
ability to establish a database connection, through which it can later run
67-
transactions and queries).
67+
transactions and queries). A background worker using
68+
<literal>BGWORKER_BACKEND_DATABASE_CONNECTION</literal> to connect to
69+
a database must also attach shared memory using
70+
<literal>BGWORKER_SHMEM_ACCESS</literal>, or worker start-up will fail.
6871
</para>
6972

7073
<para>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy