Re: Behaviour of bgworker with SIGHUP

Alvaro Herrera <alvherre@2ndquadrant.com>

From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Guillaume Lelarge <guillaume@lelarge.info>
Cc: Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2012-12-31T15:54:26Z
Lists: pgsql-hackers
Guillaume Lelarge wrote:
> On Mon, 2012-12-31 at 11:03 -0300, Alvaro Herrera wrote:

> > I think this (have a config option, and have SIGHUP work as expected)
> > would be useful to demo in worker_spi, if you care to submit a patch.
> 
> Yeah, I would love too. Reading the code of worker_spi, we could add one
> or three parameters: a naptime, and the schemaname for both bgprocess.
> One would be enough or do you prefer all three?

I got no problem with three.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services


Commits

  1. Make worker_spi sample code more complete