Re: invalid types and tables - Mailing list pgsql-admin

From Shoaib Mir
Subject Re: invalid types and tables
Date
Msg-id bf54be870612150821i28129158v6d2780f7fe836910@mail.gmail.com
Whole thread Raw
In response to Re: invalid types and tables  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-admin
Agreed, that will be a good solution for this scenario...

Thanks,
---------
Shoaib Mir
EnterpriseDB (www,enterprisedb.com)

On 12/15/06, Tom Lane <tgl@sss.pgh.pa.us> wrote:
"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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: invalid types and tables
Next
From: "Sandy Spence"
Date:
Subject: Re: invalid types and tables