Re: Delete function - Mailing list pgsql-admin

From Gaetano Mendola
Subject Re: Delete function
Date
Msg-id 011001c1f5b0$76ed58c0$d5a9fea9@GMENDOLA2
Whole thread Raw
In response to Delete function  ("Gaetano Mendola" <mendola@bigfoot.com>)
Responses Re: Delete function
List pgsql-admin
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)


pgsql-admin by date:

Previous
From: "Gaetano Mendola"
Date:
Subject: Re: Add a month
Next
From: "Rajesh Kumar Mallah."
Date:
Subject: Re: Delete function