Re: [HACKERS] how to pass data (tuples) to worker processes?

2013-08-07 Thread Jeremy Harris
On 06/08/13 13:59, Robert Haas wrote: My thought is to create a queue abstraction that sits on top of the dynamic shared memory infrastructure, so that you can set aside a portion of your dynamic shared memory segment to use as a ring buffer and send messages back and forth with using some

Re: [HACKERS] how to pass data (tuples) to worker processes?

2013-08-06 Thread Robert Haas
On Sat, Aug 3, 2013 at 6:31 AM, Andrew Tipton and...@kiwidrew.com wrote: Robert: any chance you could share a few more details on the enhancements you're planning for bgworkers? I seem to recall reading that communicating with the dynamic bgworkers after they had been launched was next on

Re: [HACKERS] how to pass data (tuples) to worker processes?

2013-08-06 Thread Amit Kapila
On Tuesday, August 06, 2013 6:29 PM Robert Haas wrote: On Sat, Aug 3, 2013 at 6:31 AM, Andrew Tipton and...@kiwidrew.com wrote: Robert: any chance you could share a few more details on the enhancements you're planning for bgworkers? I seem to recall reading that communicating with the

Re: [HACKERS] how to pass data (tuples) to worker processes?

2013-08-03 Thread Andrew Tipton
On Sat, Aug 3, 2013 at 5:43 AM, Alvaro Herrera alvhe...@2ndquadrant.comwrote: Tomas Vondra wrote: I'm learning how to use the background worker processes commited in 9.3. The usage basics are quite nicely illustrated in the worker_spi extension (kudos to those who designed the feature /

Re: [HACKERS] how to pass data (tuples) to worker processes?

2013-08-02 Thread Alvaro Herrera
Tomas Vondra wrote: I'm learning how to use the background worker processes commited in 9.3. The usage basics are quite nicely illustrated in the worker_spi extension (kudos to those who designed the feature / extension). Thanks! I'm not quite sure how to pass data between the regular

[HACKERS] how to pass data (tuples) to worker processes?

2013-04-07 Thread Tomas Vondra
Hi, I'm learning how to use the background worker processes commited in 9.3. The usage basics are quite nicely illustrated in the worker_spi extension (kudos to those who designed the feature / extension). I'm not quite sure how to pass data between the regular backend and a worker. Implementing