BUG #6410: Windows say a unpleasant warning when stop a pgsql service

Поиск
Список
Период
Сортировка
От harukat@sraoss.co.jp
Тема BUG #6410: Windows say a unpleasant warning when stop a pgsql service
Дата
Msg-id E1RqKNg-0001cd-48@wrigleys.postgresql.org
обсуждение исходный текст
Список pgsql-bugs
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:=20=20=20=20=20=20=20=20

(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.

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Eric Borts
Дата:
Сообщение: Windows x86-64 One-Click Install (9.1.2-1, 9.0.6-1) hangs on "initialising the database cluster" (with work-around)
Следующее
От: Dave Page
Дата:
Сообщение: Re: Windows x86-64 One-Click Install (9.1.2-1, 9.0.6-1) hangs on "initialising the database cluster" (with work-around)