]> granicus.if.org Git - postgresql/commitdiff
Add comment explaining BGWORKER_BYPASS_ALLOWCONN
authorMagnus Hagander <magnus@hagander.net>
Mon, 23 Apr 2018 08:31:22 +0000 (10:31 +0200)
committerMagnus Hagander <magnus@hagander.net>
Mon, 23 Apr 2018 08:31:22 +0000 (10:31 +0200)
Suggested by Michael Paquier

src/include/postmaster/bgworker.h

index 9c49bb7f4b09b3996a5b24dabce11df234b1fbc5..de16d11c2f0239e2f5ca4ffa8d08e60746073f1e 100644 (file)
@@ -145,9 +145,15 @@ extern void BackgroundWorkerInitializeConnection(const char *dbname, const char
 /* Just like the above, but specifying database and user by OID. */
 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
 
+
 /* Block/unblock signals in a background worker process */
 extern void BackgroundWorkerBlockSignals(void);
 extern void BackgroundWorkerUnblockSignals(void);