Re: cleaning up useless pl/pgsql functions

From: Tomasz Myrta <jasiek(at)klaster(dot)net>
To: Tomasz Myrta <jasiek(at)klaster(dot)net>
Cc: PGSQL-SQL <pgsql-sql(at)postgresql(dot)org>
Subject: Re: cleaning up useless pl/pgsql functions
Date: 2003-06-30 21:32:08
Message-ID: 3F00AC58.5070905@klaster.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Michael A Nachbaur 2003-06-30 21:45:06 Need help creating a BEFORE DELETE trigger
Previous Message Tomasz Myrta 2003-06-30 21:13:28 cleaning up useless pl/pgsql functions