Re: invalid types and tables

From: "Shoaib Mir" <shoaibmir(at)gmail(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Sandy Spence" <axs(at)aber(dot)ac(dot)uk>, pgsql-admin(at)postgresql(dot)org
Subject: Re: invalid types and tables
Date: 2006-12-15 16:21:57
Message-ID: bf54be870612150821i28129158v6d2780f7fe836910@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
> "Shoaib Mir" <shoaibmir(at)gmail(dot)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
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Sandy Spence 2006-12-15 16:30:54 Re: invalid types and tables
Previous Message Tom Lane 2006-12-15 15:49:48 Re: invalid types and tables