Re: Postgres db corrupted ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Postgres db corrupted ?
Дата
Msg-id 15481.1059582400@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Postgres db corrupted ?  ("Mendola Gaetano" <mendola@bigfoot.com>)
Список pgsql-admin
"Mendola Gaetano" <mendola@bigfoot.com> writes:
> but you agree anyway that should not possible delete
> a user that own DB object or at least change the owner
> to postgres?

If you do it the approved way, with DROP USER, you'll find there's
already an interlock:

regression=# create user foo;
CREATE USER
regression=# create database foo owner foo;
CREATE DATABASE
regression=# drop user foo;
ERROR:  user "foo" cannot be dropped
DETAIL:  The user owns database "foo".
regression=#

When you issue direct UPDATE/DELETEs on the system catalogs, consistency
is your responsibility.

            regards, tom lane

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

Предыдущее
От: Dani Oderbolz
Дата:
Сообщение: Re: Partition DB Tables by month
Следующее
От: "Mendola Gaetano"
Дата:
Сообщение: Re: parallel regression test failure