Re: postgresql-8.3.7 unexpected connection closures - Mailing list pgsql-general

From Tom Lane
Subject Re: postgresql-8.3.7 unexpected connection closures
Date
Msg-id 19557.1245721756@sss.pgh.pa.us
Whole thread Raw
In response to Re: postgresql-8.3.7 unexpected connection closures  (Andrew Maclean <andrew.amaclean@gmail.com>)
Responses Re: postgresql-8.3.7 unexpected connection closures
List pgsql-general
Andrew Maclean <andrew.amaclean@gmail.com> writes:
> Messages in the log are consistently of the form:
> 2009-06-23 08:28:26 EST WARNING:  worker took too long to start; cancelled
> FATAL:  could not reattach to shared memory (key=252, addr=023F0000): 487
> 2009-06-23 08:35:58 EST WARNING:  worker took too long to start; cancelled
> FATAL:  could not reattach to shared memory (key=252, addr=023F0000): 487

I suspect the causality is actually the other way around from what you
imply here: an autovac worker process fails to start (generating the
FATAL ... 487 message) and after awhile the autovac launcher figures out
that the worker died and issues the WARNING.  It might be hard to tell
that since the launcher would probably try to launch another worker
immediately after realizing the previous one died.  Looking at the
startup sequence to see which one appears first would be useful.

The "reattach to shared memory" problem is known, what we don't know is
exactly what causes it or how to fix it.  As noted, we need some people
who can reproduce the problem consistently (none of the developers can)
to poke into it and find out what aspect of their systems causes it.

            regards, tom lane

pgsql-general by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: Replication
Next
From: "Joel Nothman"
Date:
Subject: Re: Select ranges based on sequential breaks