Re: [GENERAL] spi in bgworker

2014-03-22 Thread James Harper
> > James Harper wrote: > > The docs say I'm supposed to call BackgroundWorkerInitializeConnection in > a bgworker and then I can start using spi functions, but they aren't clear on > if > I should call SPI_connect too. > > > > If I call BackgroundWorkerInitializeConnection and then SPI_execute I

Re: [GENERAL] spi in bgworker

2014-03-22 Thread Alvaro Herrera
James Harper wrote: > The docs say I'm supposed to call BackgroundWorkerInitializeConnection in a > bgworker and then I can start using spi functions, but they aren't clear on > if I should call SPI_connect too. > > If I call BackgroundWorkerInitializeConnection and then SPI_execute I get a > r

[GENERAL] spi in bgworker

2014-03-22 Thread James Harper
The docs say I'm supposed to call BackgroundWorkerInitializeConnection in a bgworker and then I can start using spi functions, but they aren't clear on if I should call SPI_connect too. If I call BackgroundWorkerInitializeConnection and then SPI_execute I get a return code of SPI_ERROR_UNCONNEC