Skip site navigation (1) Skip section navigation (2)

Re: Archiver behavior at shutdown

From: Simon Riggs <simon(at)2ndquadrant(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: Archiver behavior at shutdown
Date: 2007-12-27 22:52:02
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackerspgsql-patches
On Thu, 2007-12-27 at 17:29 -0500, Tom Lane wrote:
> Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> > What does postmaster do then?  Sleep until archiver is done, or exit
> > immediately and hope that the archiver goes away as soon as it finishes?
> I think it can just exit immediately, particularly if we invent the
> variant signal for "archive what you can and then quit".
> > If the former, then we open the possibility that postmaster lives far
> > too long before system shutdown decides to SIGKILL it.  If the latter,
> > then a subsequent postmaster start could initiate a second archiver
> > process which would cause issues with whatever the first archiver is
> > doing.
> That's a problem that the archiver itself should fix (perhaps it needs
> its own lockfile).

  Simon Riggs

In response to


pgsql-hackers by date

Next:From: Andreas 'ads' ScherbaumDate: 2007-12-27 23:20:38
Subject: Re: Binary data type with other output method
Previous:From: James MansionDate: 2007-12-27 22:41:37
Subject: Re: Sorting Improvements for 8.4

pgsql-patches by date

Next:From: Tom LaneDate: 2007-12-27 23:54:15
Subject: Re: Archiver behavior at shutdown
Previous:From: Tom LaneDate: 2007-12-27 22:29:29
Subject: Re: Archiver behavior at shutdown

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group