pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Samokhin, Dmitry [MNPP Saturn] <sdl@mnppsaturn.ru>
To: 'Jeff Janes' <jeff.janes@gmail.com>
Cc: 'Pg Bugs' <pgsql-bugs@postgresql.org>
Subject: Re: BUG #9756: Inconsistent database after OS restart
Date: Mon, 31 Mar 2014 12:15:56 +0400
Message-ID: <905A7488008D4507964235F3C36FE154@ghost> (raw)
In-Reply-To: <CAMkU=1zud6zCnAch1iggy8Lfx9KJNLe6iN5qusv1vJp5WNJtXw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Jeff,
 
Due to a huge variety of services and their functionality, it's almost
impossible to know (or predict) how much time every service needs to
complete its init and deinit operations. Giving any "reasonable", "average",
"sufficient" time to all of them to do this work would result in
unreliability, on one hand, and waste of hardware and human resources, on
the other hand. Instead, the service workflow in Windows is designed so
services receive control events from the Service Control Manager and then
they report when they are actually up or down, so Windows is able to
continue the required either startup or shutdown process. For details, see
http://msdn.microsoft.com/en-us/library/windows/desktop/ee126211%28v=vs.85%2
9.aspx
 
Regards,
Dmitry.
 

-----Original Message-----
From: Jeff Janes [mailto:jeff.janes@gmail.com] 
Sent: Friday, March 28, 2014 9:40 PM
To: sdl@mnppsaturn.ru
Cc: Pg Bugs
Subject: Re: [BUGS] BUG #9756: Inconsistent database after OS restart


On Fri, Mar 28, 2014 at 12:58 AM, <sdl@mnppsaturn.ru> wrote:


The following bug has been logged on the website:

Bug reference:      9756
Logged by:          Dmitry Samokhin
Email address:      sdl@mnppsaturn.ru
PostgreSQL version: 9.2.8
Operating system:   Windows XP, 7
Description:

After every Windows restart, database couldn't be shut down properly and
recovering actions are performed on the next startup. But if we control the
service manually by the Windows Services snap-in, no problem with the
correct DB cluster shutdown. Looks like there's something wrong with the
correct autovacuum process shutdown which leads to the DB inconsistency.




*** Windows restart: ***

-- Stopping:
2014-03-28 11:37:34 MSK LOG:  received fast shutdown request
2014-03-28 11:37:34 MSK LOG:  aborting any active transactions
2014-03-28 11:37:34 MSK LOG:  autovacuum launcher shutting down
2014-03-28 11:37:34 MSK ERROR:  canceling statement due to user request



It looks like Windows told the server to shutdown, but did not give it
enough time to complete the process before killing it uncleanly.

Can you make Windows shutdown more patient?

Cheers,

Jeff

view thread (6+ messages)  latest in thread

Message-ID: <905A7488008D4507964235F3C36FE154@ghost>
Permalink:  ../905A7488008D4507964235F3C36FE154@ghost/
Also on:    postgresql.org/message-id/905A7488008D4507964235F3C36FE154@ghost

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: sdl@mnppsaturn.ru, jeff.janes@gmail.com
  Subject: Re: BUG #9756: Inconsistent database after OS restart
  In-Reply-To: <905A7488008D4507964235F3C36FE154@ghost>
  References: <CAMkU=1zud6zCnAch1iggy8Lfx9KJNLe6iN5qusv1vJp5WNJtXw@mail.gmail.com> <905A7488008D4507964235F3C36FE154@ghost>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox