Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 71583475924 for ; Tue, 7 May 2002 06:18:33 -0400 (EDT) Received: from pns.mm.eutelsat.org (pns.mm.eutelsat.org [194.214.173.227]) by postgresql.org (Postfix) with ESMTP id 2A5744758DE for ; Tue, 7 May 2002 06:18:32 -0400 (EDT) Received: from nts-03.mm.eutelsat.org (localhost [127.0.0.1]) by pns.mm.eutelsat.org (8.11.6/linuxconf) with ESMTP id g47AIYv20112 for ; Tue, 7 May 2002 12:18:34 +0200 Received: from dell-01.mm.eutelsat.org (IDENT:root@dell-01.mm.eutelsat.org [194.214.173.17]) by nts-03.mm.eutelsat.org (8.9.3/8.8.7) with ESMTP id LAA23228 for ; Tue, 7 May 2002 11:11:51 +0200 Received: from GMENDOLA2 (gmendola2.mm.eutelsat.org [194.214.173.26]) by dell-01.mm.eutelsat.org (8.11.2/8.8.7) with SMTP id g47AHmL32653 for ; Tue, 7 May 2002 12:17:49 +0200 Message-ID: <011001c1f5b0$76ed58c0$d5a9fea9@GMENDOLA2> From: "Gaetano Mendola" To: References: <009501c1f598$bb3fa8b0$d5a9fea9@GMENDOLA2> Subject: Re: Delete function Date: Tue, 7 May 2002 12:17:59 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Archive-Number: 200205/46 X-Sequence-Number: 4221 I did this but I don't know if is the correct way: DELETE FROM pg_proc WHERE proname ~ '^sp_'; DELETE FROM pg_class WHERE relname ~ '^v_'; Ciao Gaetano. ----- Original Message ----- From: "Gaetano Mendola" To: Sent: Tuesday, May 07, 2002 9:28 AM Subject: [ADMIN] Delete function > Hi all, > How can I delete all function that match some name rules? > Ex: > I want delete all functions that matches sp_* > and all views that matches v_* > > > > Ciao > Gaetano > > -- > #exclude > #include > printf("\t\t\b\b\b\b\b\b");. > printf("\t\t\b\b\b\b\b\b"); > > > ---------------------------(end of broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)