pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: lucas@presserv.org
Cc: pgsql-sql@postgresql.org
Subject: Re: Trigger with parameters
Date: Mon, 21 Mar 2005 08:02:05 +0000
Message-ID: <423E7F7D.9030404@archonet.com> (raw)
In-Reply-To: <20050318161058.34vug165zg9c8o88@www.presserv.org>
References: <20050318161058.34vug165zg9c8o88@www.presserv.org>

lucas@presserv.org wrote:
>  CREATE TRIGGER products_codes_checkfieldvalue BEFORE INSERT OR UPDATE ON
> main.products_codes FOR EACH ROW EXECUTE PROCEDURE
> trigger_system_checkfieldvalue('main','products_codes');
>    -------  ERROR:  function trigger_system_checkfieldvalue() does not exist
> 
> But the function trigger_system_checkfieldvalue() EXIST! With (text,text)
> parameters.
> I can't built the trigger for this table (main.products_codes) using the check
> field in main_system.products_codes.
>  What is wrong???

 From the manuals:
Note that the function must be declared with no arguments even if it 
expects to receive arguments specified in CREATE TRIGGER --- trigger 
arguments are passed via TG_ARGV, as described below.

See pl/pgsql - trigger procedures for details.

-- 
   Richard Huxton
   Archonet Ltd



view thread (2+ messages)

Message-ID: <423E7F7D.9030404@archonet.com>
Permalink:  ../423E7F7D.9030404@archonet.com/
Also on:    postgresql.org/message-id/423E7F7D.9030404@archonet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: dev@archonet.com, lucas@presserv.org
  Subject: Re: Trigger with parameters
  In-Reply-To: <423E7F7D.9030404@archonet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox