From: harukat@sraoss.co.jp
To: pgsql-bugs@postgresql.org
Subject: BUG #6410: Windows say a unpleasant warning when stop a pgsql service
Date: Thu, 26 Jan 2012 08:08:28 +0000
Message-ID: <E1RqKNg-0001cd-48@wrigleys.postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 6410
Logged by: TAKATSUKA Haruka
Email address: harukat@sraoss.co.jp
PostgreSQL version: 9.1.2
Operating system: Windows Server 2008 R2
Description:
(I also tested 8.3.17, 8.4.9 and 9.2-dev.)
Windows say a unpleasant warning message into the eventlog when stop a pgsql
service.
Event ID: 1530
Log Name: Application
Source: Microsoft-Windows-User Profiles Service
Description:
"Windows detected your registry file is still in use by other applications
or services. The file will be unloaded now. The applications or services
that hold your registry file may not function properly afterwards."
I added the following lines to the end of pgwin32_ServiceMain() for trial,
---
+ Sleep(1000);
pgwin32_SetServiceStatus(SERVICE_STOPPED);
}
---
and I confirmed that the warning message was not output.
It seems this is not an essential fix, but useful to easily erase
unpleasant messages.
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: harukat@sraoss.co.jp
Subject: Re: BUG #6410: Windows say a unpleasant warning when stop a pgsql service
In-Reply-To: <E1RqKNg-0001cd-48@wrigleys.postgresql.org>
References: <E1RqKNg-0001cd-48@wrigleys.postgresql.org>
* 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