Re: how to drop function?

From: David Johnston <polobo(at)yahoo(dot)com>
To: "J(dot)V(dot)" <jvsrvcs(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: how to drop function?
Date: 2011-11-16 01:49:52
Message-ID: B91E4089-6472-48CD-B852-F904D3E5B31D@yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Nov 15, 2011, at 20:24, "J.V." <jvsrvcs(at)gmail(dot)com> wrote:

> this did not work.
>
> On 11/15/2011 4:56 PM, Craig Ringer wrote:
>> On 11/16/2011 07:38 AM, J.V. wrote:
>>> How do I drop a function that was created like so:
>>>
>>> create or replace function process_table (action TEXT, v_table_name
>>> varchar(100)) RETURNS BOOLEAN
>>> AS $$
>>> DECLARE
>>> ....
>>> BEGIN
>>> ...
>>> END;
>>> $$ LANGUAGE plpgsql;
>>>
>>> ---
>>> I have tried various ways, but it always fails.
>>
>> DROP FUNCTION process_table (action TEXT, v_table_name varchar(100));
>>
>> --
>> Craig Ringer
>>

If you are going to claim something doesn't work it really helps to provide the clues that lead you to that conclusion. Specifically, what error message(s) are you seeing?

The parameter names and the (100) are both optional so try removing them and see what happens.

David J.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message J.V. 2011-11-16 01:56:37 deferring pk constraint
Previous Message J.V. 2011-11-16 01:48:00 Re: how to drop function?