X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 578953A4F93 for ; Fri, 7 Jan 2005 20:52:30 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 07979-07 for ; Fri, 7 Jan 2005 20:52:17 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 929B03A4F8F for ; Fri, 7 Jan 2005 20:52:22 +0000 (GMT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j07KqFNw029387; Fri, 7 Jan 2005 15:52:15 -0500 (EST) To: "Florian G. Pflug" Cc: pgsql-general@postgresql.org Subject: Re: Problem creating trigger-function with arguments (8.0rc4) In-reply-to: <41DEEA4C.8090903@phlo.org> References: <41DEEA4C.8090903@phlo.org> Comments: In-reply-to "Florian G. Pflug" message dated "Fri, 07 Jan 2005 21:00:12 +0100" Date: Fri, 07 Jan 2005 15:52:15 -0500 Message-ID: <29386.1105131135@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.002 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200501/262 X-Sequence-Number: 71211 "Florian G. Pflug" 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