Re: invalid types and tables

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: invalid types and tables
Дата
Msg-id 9165.1166197788@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: invalid types and tables  ("Shoaib Mir" <shoaibmir@gmail.com>)
Ответы Re: invalid types and tables
Re: invalid types and tables
Re: invalid types and tables
Список pgsql-admin
"Shoaib Mir" <shoaibmir@gmail.com> writes:
> Well I will not recommend deleting rows like this from the meta data, but if
> I will rather try using ALTER TABLE and ALTER TYPE to assign an owner for
> the missing user referenced type or table

No, just create a new user with the same usesysid as is shown as the
owner in pg_class etc.  See the SYSID option to CREATE USER.

(FWIW, more recent PG versions prevent you from dropping users that still
own objects.)

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: out of memory in backup and restore
Следующее
От: "Shoaib Mir"
Дата:
Сообщение: Re: invalid types and tables