X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id A1F8A9FB24C for ; Wed, 23 Aug 2006 16:36:09 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 23218-03 for ; Wed, 23 Aug 2006 16:35:57 -0300 (ADT) X-Greylist: delayed 00:06:39.382577 by SQLgrey- Received: from jive.SoftHome.net (jive.SoftHome.net [66.54.152.27]) by postgresql.org (Postfix) with SMTP id A73C89FB1F2 for ; Wed, 23 Aug 2006 16:35:55 -0300 (ADT) Received: (qmail 7504 invoked by uid 417); 23 Aug 2006 19:29:13 -0000 Received: from tango-.softhome.net (HELO softhome.net) (172.16.2.14) by shunt-smtp-com-out-com-0 with SMTP; 23 Aug 2006 19:29:13 -0000 Received: from [10.27.93.50] ([209.163.142.248]) (AUTH: PLAIN scottpetersen@softhome.net) by softhome.net with esmtp; Wed, 23 Aug 2006 13:29:13 -0600 Message-ID: <44ECAC88.4060208@softhome.net> Date: Wed, 23 Aug 2006 13:29:12 -0600 From: Scott Petersen User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: Deleting Functions Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200608/169 X-Sequence-Number: 26127 Folks, I am using PGSQL do do all of my schema changes, but have run into a problem. I need to be able to DROP all of the USER FUNCTIONS that are defined in a schema. The problem is that I do not know the names of all of the functions and parameters. I know that I could use '\df' and then use perl or some other scripting language to parse this, but I need to be able to perform this action on multiple platforms (without rewriting the process for each platform). I have written a script that incorporates '\df' and appropriate parsing to perform this action for LINUX and it works fine/lasts a long time. I need to make this more transparent so it will run on all platforms (in particular windows). I know that in the past (version 7) there was a way to drop the functions by directly accessing some of the system tables. The question/problem is that we have updated to version 8.1 and need the same functionality. Any help or directions would be greatly appreciated. Thanks Scott.