Content-Length: 279391 | pFad | http://github.com/postgrespro/postgres_cluster/commit/9cad926eb876a30d58a5b39789098da83a6ef91c

93 Add missing documentation for BGWORKER_BYPASS_ALLOWCONN · postgrespro/postgres_cluster@9cad926 · GitHub
Skip to content

Commit 9cad926

Browse files
committed
Add missing documentation for BGWORKER_BYPASS_ALLOWCONN
This was missed in eed1ce7. Reported by Michael Paquier
1 parent a66c03f commit 9cad926

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

doc/src/sgml/bgworker.sgml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,15 +189,17 @@ typedef struct BackgroundWorker
189189
</para>
190190

191191
<para>Once running, the process can connect to a database by calling
192-
<function>BackgroundWorkerInitializeConnection(<parameter>char *dbname</parameter>, <parameter>char *username</parameter>)</function> or
193-
<function>BackgroundWorkerInitializeConnectionByOid(<parameter>Oid dboid</parameter>, <parameter>Oid useroid</parameter>)</function>.
192+
<function>BackgroundWorkerInitializeConnection(<parameter>char *dbname</parameter>, <parameter>char *username</parameter>, <parameter>uint32 flags</parameter>)</function> or
193+
<function>BackgroundWorkerInitializeConnectionByOid(<parameter>Oid dboid</parameter>, <parameter>Oid useroid</parameter>, <parameter>uint32 flags</parameter>)</function>.
194194
This allows the process to run transactions and queries using the
195195
<literal>SPI</literal> interface. If <varname>dbname</varname> is NULL or
196196
<varname>dboid</varname> is <literal>InvalidOid</literal>, the session is not connected
197197
to any particular database, but shared catalogs can be accessed.
198198
If <varname>username</varname> is NULL or <varname>useroid</varname> is
199199
<literal>InvalidOid</literal>, the process will run as the superuser created
200-
during <command>initdb</command>.
200+
during <command>initdb</command>. If <literal>BGWORKER_BYPASS_ALLOWCONN</literal>
201+
is specified as <varname>flags</varname> it is possible to bypass the restriction
202+
to connect to databases not allowing user connections.
201203
A background worker can only call one of these two functions, and only
202204
once. It is not possible to switch databases.
203205
</para>

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/9cad926eb876a30d58a5b39789098da83a6ef91c

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy