diff options
Diffstat (limited to 'src/include/postmaster/bgworker.h')
| -rw-r--r-- | src/include/postmaster/bgworker.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/include/postmaster/bgworker.h b/src/include/postmaster/bgworker.h index a8753df8d1..9c49bb7f4b 100644 --- a/src/include/postmaster/bgworker.h +++ b/src/include/postmaster/bgworker.h @@ -140,10 +140,13 @@ extern PGDLLIMPORT BackgroundWorker *MyBgworkerEntry; * If dbname is NULL, connection is made to no specific database; * only shared catalogs can be accessed. */ -extern void BackgroundWorkerInitializeConnection(const char *dbname, const char *username); +extern void BackgroundWorkerInitializeConnection(const char *dbname, const char *username, uint32 flags); /* Just like the above, but specifying database and user by OID. */ -extern void BackgroundWorkerInitializeConnectionByOid(Oid dboid, Oid useroid); +extern void BackgroundWorkerInitializeConnectionByOid(Oid dboid, Oid useroid, uint32 flags); + +/* Flags to BackgroundWorkerInitializeConnection et al */ +#define BGWORKER_BYPASS_ALLOWCONN 1 /* Block/unblock signals in a background worker process */ extern void BackgroundWorkerBlockSignals(void); |
