X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id EF7B830FF23 for ; Mon, 30 Jun 2003 21:32:16 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 93025-01 for ; Mon, 30 Jun 2003 18:32:06 -0300 (ADT) Received: from serwer.skawsoft.com.pl (serwer.skawsoft.com.pl [213.25.37.66]) by svr1.postgresql.org (Postfix) with ESMTP id 335173107B8 for ; Mon, 30 Jun 2003 18:32:06 -0300 (ADT) Received: from klaster.net (tv126.internetdsl.tpnet.pl [80.55.125.126]) by serwer.skawsoft.com.pl (Postfix) with ESMTP id AA6042B3FC; Mon, 30 Jun 2003 23:32:03 +0200 (CEST) Message-ID: <3F00AC58.5070905@klaster.net> Date: Mon, 30 Jun 2003 23:32:08 +0200 From: Tomasz Myrta User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.4b) Gecko/20030507 X-Accept-Language: pl, en-us, en MIME-Version: 1.0 To: Tomasz Myrta Cc: PGSQL-SQL Subject: Re: cleaning up useless pl/pgsql functions References: <3F00A7F8.80107@klaster.net> In-Reply-To: <3F00A7F8.80107@klaster.net> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit X-Archive-Number: 200306/346 X-Sequence-Number: 14104 Dnia 2003-06-30 23:13, Użytkownik Tomasz Myrta napisał: > Hi > Do you have any easy script to remove all pl/pgsql function? After a lot > of changes inside "create or replace function..." scripts I have a big > mess. I want to remove all user defined pl/pgsql functions and restore > some of them from my scripts again. > > > Regards, > Tomasz Myrta Hmm Answer to myself: DELETE from pg_proc where prolang =(select oid from pg_language where lanname='plpgsq'); What do you think about it? Tomasz