Re: [v9.3] Extra Daemons (Re: elegant and effective way for running jobs inside a database)
Alvaro Herrera <alvherre@2ndquadrant.com>
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Kohei KaiGai <kaigai@kaigai.gr.jp>
Cc: Simon Riggs <simon@2ndquadrant.com>, Andrew Dunstan <andrew@dunslane.net>, Robert Haas <robertmhaas@gmail.com>, David E. Wheeler <david@justatheory.com>, Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2012-09-26T21:55:38Z
Lists: pgsql-hackers
Attachments
- bgworker-4.patch (application/octet-stream) patch
Excerpts from Alvaro Herrera's message of mié sep 26 13:04:34 -0300 2012: > Excerpts from Kohei KaiGai's message of mié abr 25 06:40:23 -0300 2012: > > > I tried to implement a patch according to the idea. It allows extensions > > to register an entry point of the self-managed daemon processes, > > then postmaster start and stop them according to the normal manner. > > Here's my attempt at this. This is loosely based on your code, as well > as parts of what Simon sent me privately. Actually please consider this version instead, in which the support to connect to a database and run transactions actually works. I have also added a new sample module (worker_spi) which talks to the server using the SPI interface. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services