Commit 43cc4ee6 authored by Magnus Hagander's avatar Magnus Hagander

Add comment explaining BGWORKER_BYPASS_ALLOWCONN

Suggested by Michael Paquier
parent 9cad926e
...@@ -145,9 +145,15 @@ extern void BackgroundWorkerInitializeConnection(const char *dbname, const char ...@@ -145,9 +145,15 @@ extern void BackgroundWorkerInitializeConnection(const char *dbname, const char
/* Just like the above, but specifying database and user by OID. */ /* Just like the above, but specifying database and user by OID. */
extern void BackgroundWorkerInitializeConnectionByOid(Oid dboid, Oid useroid, uint32 flags); extern void BackgroundWorkerInitializeConnectionByOid(Oid dboid, Oid useroid, uint32 flags);
/* Flags to BackgroundWorkerInitializeConnection et al */ /*
* Flags to BackgroundWorkerInitializeConnection et al
*
*
* Allow bypassing datallowconn restrictions when connecting to database
*/
#define BGWORKER_BYPASS_ALLOWCONN 1 #define BGWORKER_BYPASS_ALLOWCONN 1
/* Block/unblock signals in a background worker process */ /* Block/unblock signals in a background worker process */
extern void BackgroundWorkerBlockSignals(void); extern void BackgroundWorkerBlockSignals(void);
extern void BackgroundWorkerUnblockSignals(void); extern void BackgroundWorkerUnblockSignals(void);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment