Re: [HACKERS] Database disconnection and switch inside a single bgworker

2013-11-19 Thread Robert Haas
On Fri, Nov 15, 2013 at 10:14 AM, Tom Lane wrote: > Michael Paquier writes: >> Currently, bgworkers offer the possibility to connect to a given >> database using BackgroundWorkerInitializeConnection in bgworker.h, but >> there is actually no way to disconnect from a given database inside >> the s

Re: [HACKERS] Database disconnection and switch inside a single bgworker

2013-11-15 Thread Tom Lane
Michael Paquier writes: > Currently, bgworkers offer the possibility to connect to a given > database using BackgroundWorkerInitializeConnection in bgworker.h, but > there is actually no way to disconnect from a given database inside > the same bgworker process. That's isomorphic to having a back

[HACKERS] Database disconnection and switch inside a single bgworker

2013-11-14 Thread Michael Paquier
Hi all, Currently, bgworkers offer the possibility to connect to a given database using BackgroundWorkerInitializeConnection in bgworker.h, but there is actually no way to disconnect from a given database inside the same bgworker process. One of the use cases for that would be the possibility to