Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id A54C99FA0DF for ; Fri, 2 Nov 2007 19:28:02 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 36736-04-3 for ; Fri, 2 Nov 2007 19:27:39 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id 86C789F9FFB for ; Fri, 2 Nov 2007 19:27:27 -0300 (ADT) Received: from alvh.no-ip.org (200-126-73-212.bk5-dsl.surnet.cl [200.126.73.212]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.7) with ESMTP id lA2MRSjs006712; Fri, 2 Nov 2007 15:27:29 -0700 Received: by alvh.no-ip.org (Postfix, from userid 1000) id 1784F560047; Fri, 2 Nov 2007 16:30:52 -0300 (CLST) Date: Fri, 2 Nov 2007 16:30:52 -0300 From: Alvaro Herrera To: Jessica Richard Cc: Tom Lane , pgsql-admin@postgresql.org Subject: Re: how to check objects dependency?? Message-ID: <20071102193052.GC2374@alvh.no-ip.org> Mail-Followup-To: Jessica Richard , Tom Lane , pgsql-admin@postgresql.org References: <18966.1193860699@sss.pgh.pa.us> <365368.53951.qm@web56411.mail.re3.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <365368.53951.qm@web56411.mail.re3.yahoo.com> User-Agent: Mutt/1.5.16 (2007-06-11) X-Virus-Scanned: ClamAV 0.91.1/4659/Thu Nov 1 09:24:40 2007 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Fri, 02 Nov 2007 15:27:30 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/31 X-Sequence-Number: 27274 Jessica Richard wrote: > Instead of using drop user username, I used drop user "username" with > double quotes, then the error message told me more detail about a > specific user defined function. Then I was able to drop that function, > then drop this user. FYI you can use the commands DROP OWNED and REASSIGN OWNED to drop the objects by a given role, and respectively assign them to someone else. (8.2 only). -- Alvaro Herrera Valdivia, Chile ICBM: S 39º 49' 18.1", W 73º 13' 56.4" "Ninguna manada de bestias tiene una voz tan horrible como la humana" (Orual)