Re: SIGUSR1 pingpong between master na autovacum launcher causes crash - Mailing list pgsql-hackers

From Zdenek Kotala
Subject Re: SIGUSR1 pingpong between master na autovacum launcher causes crash
Date
Msg-id 1251117387.3252.24.camel@localhost
Whole thread Raw
In response to Re: SIGUSR1 pingpong between master na autovacum launcher causes crash  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
Responses Re: SIGUSR1 pingpong between master na autovacum launcher causes crash
List pgsql-hackers
Zdenek Kotala píše v po 24. 08. 2009 v 13:47 +0200:

> I tested Alvaro's patch and it works, because it does not lead to stack
> consumption, but it shows another bug in StartAutovacuumWorker() code.
> When fork fails bn structure is freed but 
> ReleasePostmasterChildSlot() should be called as well. See error:
> 
> 2009-08-24 11:50:20.360 CEST 3468 FATAL:  no free slots in PMChildFlags array
> 
> and comment in source code:
> 
> /* Out of slots ... should never happen, else postmaster.c messed up */
> 

Just a confirmation that Alvaro's patch+ReleasePostmasterChildSlot() fix
solves the problem and PostgreSQL survives well during a memory
shortages.
Zdenek 



pgsql-hackers by date:

Previous
From: Zdenek Kotala
Date:
Subject: Re: SIGUSR1 pingpong between master na autovacum launcher causes crash
Next
From: Andrew Dunstan
Date:
Subject: hba load error and silent mode