Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 43cc4ee

Browse files
committed
Add comment explaining BGWORKER_BYPASS_ALLOWCONN
Suggested by Michael Paquier
1 parent 9cad926 commit 43cc4ee

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/include/postmaster/bgworker.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,15 @@ extern void BackgroundWorkerInitializeConnection(const char *dbname, const char
145145
/* Just like the above, but specifying database and user by OID. */
146146
extern void BackgroundWorkerInitializeConnectionByOid(Oid dboid, Oid useroid, uint32 flags);
147147

148-
/* Flags to BackgroundWorkerInitializeConnection et al */
148+
/*
149+
* Flags to BackgroundWorkerInitializeConnection et al
150+
*
151+
*
152+
* Allow bypassing datallowconn restrictions when connecting to database
153+
*/
149154
#define BGWORKER_BYPASS_ALLOWCONN 1
150155

156+
151157
/* Block/unblock signals in a background worker process */
152158
extern void BackgroundWorkerBlockSignals(void);
153159
extern void BackgroundWorkerUnblockSignals(void);

0 commit comments

Comments
 (0)