Re: how to drop function?

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: how to drop function?
Date: 2011-11-16 08:17:45
Message-ID: j9vrhj$hkq$1@dough.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ivan Sergio Borgonovo, 16.11.2011 01:01:
> test=# begin;
> create or replace function process_table (
> action TEXT, v_table_name varchar(100)
> ) RETURNS BOOLEAN
> AS $$
> DECLARE
>
> BEGIN
> return true;
> END;
> $$ LANGUAGE plpgsql;
>
> drop function process_table (
> action TEXT, v_table_name varchar(100)
> );
> commit;
> BEGIN
> CREATE FUNCTION
> DROP FUNCTION
> COMMIT
> test=#
>
> Repeat just the input parameters.

You don't have to include the parameter names though

drop function process_table (TEXT, varchar(100));

is just as good and bit less typing ;)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ivan Sergio Borgonovo 2011-11-16 09:03:36 Re: how to drop function?
Previous Message Ivan Sergio Borgonovo 2011-11-16 08:12:37 Re: how to drop function?