Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 9ED469FA0FB for ; Fri, 15 Dec 2006 11:50:07 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 52726-08 for ; Fri, 15 Dec 2006 11:49:59 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 7EDC59FA38F for ; Fri, 15 Dec 2006 11:49:59 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id kBFFnmHL009166; Fri, 15 Dec 2006 10:49:48 -0500 (EST) To: "Shoaib Mir" cc: "Sandy Spence" , pgsql-admin@postgresql.org Subject: Re: invalid types and tables In-reply-to: References: <002a01c7204d$c4afba90$520b3cc1@pc2axs> Comments: In-reply-to "Shoaib Mir" message dated "Fri, 15 Dec 2006 18:47:59 +0500" Date: Fri, 15 Dec 2006 10:49:48 -0500 Message-ID: <9165.1166197788@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/225 X-Sequence-Number: 24017 "Shoaib Mir" 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