Re: PITR Signalling the Archiver - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: PITR Signalling the Archiver
Date
Msg-id 1084312767.3028.2160.camel@stromboli
Whole thread Raw
In response to Re: PITR Signalling the Archiver  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Tue, 2004-05-11 at 22:15, Tom Lane wrote:
> Simon Riggs <simon@2ndquadrant.com> writes:
> > I need to send a signal from a backend to the archiver process.
> 
> > 1. What signal should I use? 
> 
> SIGUSR1 or SIGUSR2 would be the safest choices.
> 
> > 2. How do I give the processid of the archiver to the backend? The
> > archiver may restart at any time, so its pid could change after a
> > backend is forked.
> 
> My answer would be "don't".  Send a signal to the postmaster and
> let it signal the current archiver child.  Use the existing
> SendPostmasterSignal() code for the first part of this.
> 

Brilliant - very clean. Many thanks. Best Regards, Simon Riggs



pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: XLog: how to log?
Next
From: Simon Riggs
Date:
Subject: Re: XLog: how to log?