]> granicus.if.org Git - postgresql/commitdiff
docs: Clarify flag dependencies for background workers.
authorRobert Haas <rhaas@postgresql.org>
Thu, 4 Jul 2013 15:11:56 +0000 (11:11 -0400)
committerRobert Haas <rhaas@postgresql.org>
Thu, 4 Jul 2013 15:15:01 +0000 (11:15 -0400)
BGWORKER_BACKEND_DATABASE_CONNECTION can only be used if
BGWORKER_SHMEM_ACCESS is also used.

Michael Paquier, with some tweaks by me.

doc/src/sgml/bgworker.sgml

index 1151161a848d8948de11697f2b822fcc70ee3cfb..b0dde7564d86093e9aa4424ab562151e3ebb3f6f 100644 (file)
@@ -64,7 +64,10 @@ typedef struct BackgroundWorker
    <literal>BGWORKER_SHMEM_ACCESS</literal> (requesting shared memory access)
    and <literal>BGWORKER_BACKEND_DATABASE_CONNECTION</literal> (requesting the
    ability to establish a database connection, through which it can later run
-   transactions and queries).
+   transactions and queries). A background worker using
+   <literal>BGWORKER_BACKEND_DATABASE_CONNECTION</literal> to connect to
+   a database must also attach shared memory using
+   <literal>BGWORKER_SHMEM_ACCESS</literal>, or worker start-up will fail.
   </para>
 
   <para>