|From:||John R Pierce <pierce(at)hogranch(dot)com>|
|Subject:||Re: BUG #12824: Error during uninstall|
|Views:||Raw Message | Whole Thread | Download mbox|
On 7/7/2015 6:26 PM, Raul Cesar wrote:
> I am trying to uninstall the PostgreSQL 9.0 on a Windows 8.1.
> I tried at the Control Pane > Uninstall Program
> and also in the C: > Program Files > PostgreSql > 9.0 >
> When I choose Postgresql sometimes even load the question if I had
> some problem with it,
> but after couple seconds appears the error message
brute force manual uninstall from Windows: you want to identify, stop
and delete the Postgres Service, then delete the postgres files, then
delete the postgres user. procedures below are off the top of my head,
and haven't been tested.
1) open a CMD window with "Run as Administrator"
2) sc query postgresql-9.0 <== if its 64bit, it might be
postgresql-x64-9.0, use this for step 3 and 4.
3) if the STATE was RUNNING, then do: sc stop postgresql-9.0
4) sc delete postgresql-9.0
5) using the file explorer, locate the postgres software directory,
probably "c:\Program Files\PostgreSQL\" ... right click on this,
properties, security, ownership, take ownership, ok ok ok. then delete
this folder and everything in it.
6) using the file explorer, locate the postgres data directory. I've
always manually put mine on "D:\postgresql\x.y\data", do the same as
above, take ownership and delete it.
7) net user postgres /delete
if you can't find/guess the service name for step 2, then go into
control panel -> administrative tools -> services, find the postgresql
service, double click on it, and note the 'Service name" (top field
shown), go ahead and STOP the service there if its running, then use
this service name for the sc delete.
john r pierce, recycling bits in santa cruz
|Next Message||grb||2015-07-09 09:52:59||BUG #13495: Postgres documentation consistently teaches 'bad' practice|
|Previous Message||Graeme||2015-07-08 14:34:32||Re: BUG #13493: pl/pgsql doesn't scale with cpus (PG9.3, 9.4)|