From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | Dimitri Fontaine <dfontaine(at)hi-media(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, David Christensen <david(at)endpoint(dot)com>, Jaime Casanova <jcasanov(at)systemguards(dot)com(dot)ec>, Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>, Simon Riggs <simon(at)2ndquadrant(dot)com>, Dave Page <dpage(at)pgadmin(dot)org>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: tie user processes to postmaster was:(Re: [HACKERS] scheduler in core) |
Date: | 2010-02-23 14:34:13 |
Message-ID: | 20100223143413.GA3672@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Dimitri Fontaine wrote:
> Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
> > Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> >> Regarding hooks or events, I think postmaster should be kept simple:
> >> launch at start, reset at crash recovery, kill at stop.
> >
> > This is exactly why I think the whole proposal is a nonstarter. It is
> > necessarily pushing more complexity into the postmaster, which means
> > an overall reduction in system reliability.
>
> I was under the illusion that having a separate "supervisor" process
> child of postmaster to care about the user daemons would protect
> postmaster itself. At least the only thing it'd have to do is start a
> new child. Then let it care.
The problem I have with this design is that those processes are then not
direct children of postmaster itself, which is a problem when it wants
them to stop and such. (This is why autovacuum workers are started by
postmaster and not by the launcher directly. If I knew of a way to make
it work reliably, I wouldn't have bothered with that signalling
mechanism, which is quite fragile and gets its fair share of bug
reports.)
(Hmm, but then, autovacuum workers are backends and so they need to be
more closely linked to postmaster. These other processes needn't be.)
--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2010-02-23 14:34:26 | Re: Issues for named/mixed function notation patch |
Previous Message | Gokulakannan Somasundaram | 2010-02-23 13:47:42 | Re: A thought on Index Organized Tables |