Re: [HACKERS] bgworker sigusr1 handler

2013-04-10 Thread Alvaro Herrera
Robert Haas escribió: > Just for fun, I implemented a toy background worker tonight using the > new bgworker framework. Generally, it went well, and I'm pleased with > the design of the new facility. Thanks. > However, I did notice one oddity. I initialized the worker flags like > this: > >

Re: [HACKERS] bgworker sigusr1 handler

2013-04-09 Thread Michael Paquier
On Wed, Apr 10, 2013 at 12:15 PM, Robert Haas wrote: > Just for fun, I implemented a toy background worker tonight using the > new bgworker framework. Generally, it went well, and I'm pleased with > the design of the new facility. However, I did notice one oddity. I > initialized the worker fla

[HACKERS] bgworker sigusr1 handler

2013-04-09 Thread Robert Haas
Just for fun, I implemented a toy background worker tonight using the new bgworker framework. Generally, it went well, and I'm pleased with the design of the new facility. However, I did notice one oddity. I initialized the worker flags like this: worker.bgw_flags = BGWORKER_SHMEM_ACCESS