On Mon, 2006-05-22 at 17:29 +0100, Simon Riggs wrote:
> Lock file to prevent starting with multiple archivers present.
>
> Possibly some debate over exact behaviour, but publish early...
Original patch withdrawn.
New patch included.
--
Simon Riggs
EnterpriseDB http://www.enterprisedb.com
Index: src/backend/postmaster/pgarch.c
===================================================================
RCS file: /projects/cvsroot/pgsql/src/backend/postmaster/pgarch.c,v
retrieving revision 1.20
diff -c -r1.20 pgarch.c
*** src/backend/postmaster/pgarch.c 5 Mar 2006 15:58:35 -0000 1.20
--- src/backend/postmaster/pgarch.c 23 May 2006 15:14:01 -0000
***************
*** 352,358 ****
* some backend will add files onto the list of those that need archiving
* while we are still copying earlier archives
*/
! while (pgarch_readyXlog(xlog))
{
int failures = 0;
--- 352,358 ----
* some backend will add files onto the list of those that need archiving
* while we are still copying earlier archives
*/
! while (PostmasterIsAlive(true) && pgarch_readyXlog(xlog))
{
int failures = 0;
---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?
http://archives.postgresql.org