Re: cleaning up useless pl/pgsql functions

From: Rod Taylor <rbt(at)rbt(dot)ca>
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-07-01 00:39:06
Message-ID: 1057019945.28657.103.camel@jester
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Mon, 2003-06-30 at 21:13, Tomasz Myrta wrote:
> 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.

DROP PROCEDURAL LANGUAGE plpgsql CASCADE;
CREATE PROCEDURAL LANGUAGE plpgsql ...

--
Rod Taylor <rbt(at)rbt(dot)ca>

PGP Key: http://www.rbt.ca/rbtpub.asc

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Rod Taylor 2003-07-01 00:41:28 Re: Need help creating a BEFORE DELETE trigger
Previous Message Josh Berkus 2003-07-01 00:35:29 Re: help with "delete joins"