pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gaetano Mendola <mendola@bigfoot.com>
To: pgsql-admin@postgresql.org
Subject: Re: Delete function
Date: Tue, 7 May 2002 12:17:59 +0200
Message-ID: <011001c1f5b0$76ed58c0$d5a9fea9@GMENDOLA2> (raw)
References: <009501c1f598$bb3fa8b0$d5a9fea9@GMENDOLA2>

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" <mendola@bigfoot.com>
To: <pgsql-admin@postgresql.org>
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 <windows>
> #include <CSRSS>
> 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)




view thread (5+ messages)  latest in thread

Message-ID: <011001c1f5b0$76ed58c0$d5a9fea9@GMENDOLA2>
Permalink:  ../011001c1f5b0$76ed58c0$d5a9fea9@GMENDOLA2/
Also on:    postgresql.org/message-id/011001c1f5b0$76ed58c0$d5a9fea9@GMENDOLA2

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: mendola@bigfoot.com
  Subject: Re: Delete function
  In-Reply-To: <011001c1f5b0$76ed58c0$d5a9fea9@GMENDOLA2>
  References: <009501c1f598$bb3fa8b0$d5a9fea9@GMENDOLA2> <011001c1f5b0$76ed58c0$d5a9fea9@GMENDOLA2>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox