Re: [DOCS] bgworker / SPI docs patches

2015-07-30 Thread Robert Haas
On Thu, Jul 30, 2015 at 3:47 AM, Heikki Linnakangas wrote: > Hmm. worker_spi module uses bgw_main. Is that bad? Given that work_spi is > supposedly an example or template that you copy-paste from when writing your > own bgworker, we should make sure it follows the best practice. Also, I note > tha

Re: [DOCS] bgworker / SPI docs patches

2015-07-30 Thread Heikki Linnakangas
On 07/29/2015 09:42 PM, Robert Haas wrote: + + + Use of this field is deprecated. It should be set to + NULL then bgw_library_name + and bgw_function_name should be used instead. + I don't think bgw_main is exactly deprecated. It's fine to use it if the function is in the