Re: Win32 hard crash problem - Mailing list pgsql-hackers

From Joshua D. Drake
Subject Re: Win32 hard crash problem
Date
Msg-id 44FDE8AD.20207@commandprompt.com
Whole thread Raw
In response to Win32 hard crash problem  ("Joshua D. Drake" <jd@commandprompt.com>)
Responses Re: Win32 hard crash problem  (Jeremy Drake <pgsql@jdrake.com>)
List pgsql-hackers
Magnus Hagander wrote:
>>>> PostgreSQL will also not recover on its own (e.g; auto restart and 
>>>> roll through the logs).
>>> What do you mean by this? It doesn't start upon reboot? 
>> What is needed 
>>> to make it start?
>> It means that postgresql doesn't recover on its own. On linux 
>> if a backend crashes all of PostgreSQL will restart and come 
>> back up if it can.
>>
>> On Win32 it doesn't.
> 
> Ah, I thought you meant that the database recovery process (that runs
> after a crash) failed and lost data. But it's not data-loss then, it
> just took a reboot to fix it?

Right, but "just took a reboot to fix it" isn't very confidence inspiring ;)

> 
> I think we're somehow seeing a complete postmaster hang, where it's
> either not able to kill off th ebackends as required, or just not
> capable of accepting new connections after that. Which makes a
> stacktrace from the postmaster the most interesting one to look at.

I have asked the customer to also look and see if there was one 
particular process that was eating cpu via the task master and see if 
that process can be killed. If that process can be killed and postgresql 
comes back clean, then that is a step.

However, debugging this beast is a pain. I take it mingw doesn't have a 
gdb we can use?

> 
> //Magnus
> 


-- 
   === The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240   Providing the most comprehensive  PostgreSQL
solutionssince 1997             http://www.commandprompt.com/
 




pgsql-hackers by date:

Previous
From: "Merlin Moncure"
Date:
Subject: Re: Win32 hard crash problem
Next
From: "Magnus Hagander"
Date:
Subject: Re: Win32 hard crash problem