Re: BUG #2216: Cannot unregister service - Mailing list pgsql-bugs

From Magnus Hagander
Subject Re: BUG #2216: Cannot unregister service
Date
Msg-id 6BCB9D8A16AC4241919521715F4D8BCE6C7F6A@algol.sollentuna.se
Whole thread Raw
In response to BUG #2216: Cannot unregister service  ("Taworn T." <taworn@yahoo.com>)
List pgsql-bugs
> The following bug has been logged online:
>=20
> Bug reference:      2216
> Logged by:          Taworn T.
> Email address:      taworn@yahoo.com
> PostgreSQL version: 8.1.2
> Operating system:   Windows XP
> Description:        Cannot unregister service
> Details:=20
>=20
> I've install PGSQL 8.1 as Windows service, using following=20
> command line:
>=20
> "C:\Program Files\PostgreSQL-8.1\bin\pg_ctl.exe" register -N=20
> PostgreSQL81 -D "<path_to_data>" -U Postgres
>=20
> The result is success and I can use PGSQL as usual.
>=20
> But when I uninstall service using following command line:
>=20
> "C:\Program Files\PostgreSQL-8.1\bin\pg_ctl.exe" unregister=20
> -N PostgreSQL81
>=20
> pg_ctl.exe is crashed!! with error reporting (to Microsoft) screen:
>=20
> "pg_ctl.exe has encountered a problem and needs to close.  We=20
> are sorry for the inconvenience."

This is a known bug that's fixed in CVS:
http://archives.postgresql.org/pgsql-committers/2006-01/msg00220.php

The workaround is to specify the data directory, e.g.
pg_ctl -D "c:\program files\postgresql-8.1\data" unregister -N
PostgreSQL81

//Magnus

pgsql-bugs by date:

Previous
From: "ATTILA GATI"
Date:
Subject: BUG #2217: serial in rule and trigger
Next
From: Robert Treat
Date:
Subject: Re: improper estimates even with high statistic values