mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
Add missing documentation for BGWORKER_BYPASS_ALLOWCONN
This was missed in eed1ce72e1593d3e8b7461d7744808d4d6bf402b. Reported by Michael Paquier
This commit is contained in:
parent
a66c03f698
commit
9cad926eb8
@ -189,15 +189,17 @@ typedef struct BackgroundWorker
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>Once running, the process can connect to a database by calling
|
<para>Once running, the process can connect to a database by calling
|
||||||
<function>BackgroundWorkerInitializeConnection(<parameter>char *dbname</parameter>, <parameter>char *username</parameter>)</function> or
|
<function>BackgroundWorkerInitializeConnection(<parameter>char *dbname</parameter>, <parameter>char *username</parameter>, <parameter>uint32 flags</parameter>)</function> or
|
||||||
<function>BackgroundWorkerInitializeConnectionByOid(<parameter>Oid dboid</parameter>, <parameter>Oid useroid</parameter>)</function>.
|
<function>BackgroundWorkerInitializeConnectionByOid(<parameter>Oid dboid</parameter>, <parameter>Oid useroid</parameter>, <parameter>uint32 flags</parameter>)</function>.
|
||||||
This allows the process to run transactions and queries using the
|
This allows the process to run transactions and queries using the
|
||||||
<literal>SPI</literal> interface. If <varname>dbname</varname> is NULL or
|
<literal>SPI</literal> interface. If <varname>dbname</varname> is NULL or
|
||||||
<varname>dboid</varname> is <literal>InvalidOid</literal>, the session is not connected
|
<varname>dboid</varname> is <literal>InvalidOid</literal>, the session is not connected
|
||||||
to any particular database, but shared catalogs can be accessed.
|
to any particular database, but shared catalogs can be accessed.
|
||||||
If <varname>username</varname> is NULL or <varname>useroid</varname> is
|
If <varname>username</varname> is NULL or <varname>useroid</varname> is
|
||||||
<literal>InvalidOid</literal>, the process will run as the superuser created
|
<literal>InvalidOid</literal>, the process will run as the superuser created
|
||||||
during <command>initdb</command>.
|
during <command>initdb</command>. If <literal>BGWORKER_BYPASS_ALLOWCONN</literal>
|
||||||
|
is specified as <varname>flags</varname> it is possible to bypass the restriction
|
||||||
|
to connect to databases not allowing user connections.
|
||||||
A background worker can only call one of these two functions, and only
|
A background worker can only call one of these two functions, and only
|
||||||
once. It is not possible to switch databases.
|
once. It is not possible to switch databases.
|
||||||
</para>
|
</para>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user