Re: Stored Procedure Problem

From: Jan Wieck <janwieck(at)yahoo(dot)com>
To: Mike Marconi <mmpostlist(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Stored Procedure Problem
Date: 2002-05-23 20:17:12
Message-ID: 200205232017.g4NKHFF11359@saturn.janwieck.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Mike Marconi wrote:
> [...]
>
> I have notice that the procedure is in pg_proc, but if
> you refer to it with "Drop Function pagedata_insert"
> it won't find it either.
> If I take out the argument declaration both objects
> are created successfully.

You have to match the functions argument list in DROP
FUNCTION to actually hit it. There could be any number of
functions named the same, as long as their arguments differ
(function overloading).

Trigger procedures don't take arguments. So you have to
CREATE it with empty parens. The arguments you specify in
CREATE TRIGGER will be found in the array TG_ARGV[] then.

Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck(at)Yahoo(dot)com #

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-05-23 20:21:56 Re: Indices for both where and order by.
Previous Message Andrew Sullivan 2002-05-23 19:47:23 Just PR (was: Stability, PR)