pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Florian G. Pflug <fgp@phlo.org>
Cc: pgsql-general@postgresql.org
Subject: Re: Problem creating trigger-function with arguments (8.0rc4)
Date: Fri, 07 Jan 2005 15:52:15 -0500
Message-ID: <29386.1105131135@sss.pgh.pa.us> (raw)
In-Reply-To: <41DEEA4C.8090903@phlo.org>
References: <41DEEA4C.8090903@phlo.org>

"Florian G. Pflug" <fgp@phlo.org> writes:
> This is what I tried:

> CREATE OR REPLACE FUNCTION functions.t_insert_deny(v_message text)
> RETURNS "trigger" AS $$

There should probably be a specific error check telling you that a
trigger function can't take any explicit arguments.  But there isn't
(and it's too late for 8.0 because we froze error message strings
long since :-().

The CREATE TRIGGER parameter comes to the trigger function via TGARGS,
not as a regular parameter.

			regards, tom lane



view thread (7+ messages)  latest in thread

Message-ID: <29386.1105131135@sss.pgh.pa.us>
Permalink:  ../29386.1105131135@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29386.1105131135@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, fgp@phlo.org
  Subject: Re: Problem creating trigger-function with arguments (8.0rc4)
  In-Reply-To: <29386.1105131135@sss.pgh.pa.us>
  References: <41DEEA4C.8090903@phlo.org> <29386.1105131135@sss.pgh.pa.us>

* 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