Re: BUG #4797: Uninstall : impossible to delete some files (base...)

Поиск
Список
Период
Сортировка
От Dave Page
Тема Re: BUG #4797: Uninstall : impossible to delete some files (base...)
Дата
Msg-id 937d27e10905080648p61a29cf4k7d12e732c1cca9a3@mail.gmail.com
обсуждение исходный текст
Список pgsql-bugs
On Fri, May 8, 2009 at 2:17 PM, eric.saudraix <eric.saudraix@laposte.net> w=
rote:
>
> Thanks for your quick reply.
>
>
>
> I know I have to be the administrator of my data. Indeed, I am the
> administrator of my computer.
>
> On Linux it would not be a problem to find the key that leads to the
> problem.
>
>
>
> In fact to explain what's wrong : a database was created - or attempted to
> be created - with PostGreSQL. When I uninstall PostGreSql I didn't know I
> had to delete my database before I can uninstall this software. Now the

You don't have to delete the database before uninstalling - in fact,
many users rely on the fact that you don't.

> problem is Windows Vista thinks files of my database were created by an
> other user, who does not exist anymore. It is due to some security
> restrictions of NTFS.=A0Consequently=A0I can not delete the files. What c=
an=A0I do

The uninstallation process doesn't delete the user account that should
own the files - it has no way of knowing if you're using the account
for other installations.

To remove the old data directory, just take ownership of it and then
you can do whatever you like with it. There's a howto document here:
http://www.vista4beginners.com/Change-permissions-take-ownership (I'm
not that familiar with Vista, so don't know the specifics on that
platform).

> ? On Linux it is quite difficult to find the "user key", but on Vista I d=
on
> not know what to do.

I don't know what you mean by 'user key'. There's a fundamental
difference between Linux and Windows though - on Linux, the root user
can do *anything*. On Windows, that is not the case for
administrators. File permissions can still keep them out of files,
requiring additional steps such as taking ownership to access them.

--=20
Dave Page
EnterpriseDB UK:   http://www.enterprisedb.com

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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: 42804: structure of query does not match error where using RETURN QUERY
Следующее
От: Tom Lane
Дата:
Сообщение: Re: 42804: structure of query does not match error where using RETURN QUERY