On Wed, May 24, 2017 at 11:39 AM, Mahi Gurram <teckymahi@gmail.com> wrote:
> One solution that is striking me is....
> 1. I'll create one background worker and will initialise DSA in it.
> 2. If there are any callbacks available for client open/close connections,
> i'll attach/detach to the DSA in those callbacks.
>
> But i'm not sure there are such callbacks available. If such callbacks
> exists in postgres and you guys know please help me out with that.
>
We do share DSA handle, planned statement, params etc from master
backend with workers. See ExecInitParallelPlan that might help you in
your work.
--
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com