Re: Infrastructure changes for recovery - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: Infrastructure changes for recovery
Date
Msg-id 1218124543.4549.552.camel@ebony.2ndQuadrant
Whole thread Raw
In response to Re: Infrastructure changes for recovery  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers
On Thu, 2008-08-07 at 10:56 -0400, Alvaro Herrera wrote:

> > * have startup process signal postmaster again when it has completed
> > recovery, so that the change of state is via explicit signal rather than
> > death of the child process
> 
> I'm not sure that this is very useful, because the startup process
> cannot do anything much.  It is an auxiliary process, which means it
> can't connect to a database and it can't run transactions.

Yes, but its going to be a lot easier to make it do transactions than it
will be to spawn something else that does? Or so I thought...

Specifically, I want to have a rmgr_post_cleanup() call to perform such
actions.

Who do you think should run those calls? They might need transactions,
or not, depending upon the rmgr. I envisage initially that rmgrs could
mark indexes as Invalid in pg_class, which requires a transaction (or
does it?).

If we did alter rmgrs to allow them to actually rebuild an index, then
it would be desirable to have them do it in parallel, just like AV
workers.

Would it be possible to use have startup to run rmgr_post_cleanup, then
provide a facility to have them run tasks through AV workers?

Sounds like a separate patch anyway.

-- Simon Riggs           www.2ndQuadrant.comPostgreSQL Training, Services and Support



pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: Parsing of pg_hba.conf and authentication inconsistencies
Next
From: Alvaro Herrera
Date:
Subject: Re: patch: Add columns via CREATE OR REPLACE VIEW