Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 4751B475EBF for ; Tue, 17 Dec 2002 23:26:15 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 925B8475D1C for ; Tue, 17 Dec 2002 23:26:14 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.6/8.12.6) with ESMTP id gBI4QIpd019737; Tue, 17 Dec 2002 23:26:18 -0500 (EST) To: Tim Perdue Cc: pgsql-sql@postgresql.org Subject: Re: pl/pgsql question In-reply-to: <3DFFF5AB.1080004@perdue.net> References: <3DFFF5AB.1080004@perdue.net> Comments: In-reply-to Tim Perdue message dated "Tue, 17 Dec 2002 22:12:27 -0600" Date: Tue, 17 Dec 2002 23:26:18 -0500 Message-ID: <19736.1040185578@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/212 X-Sequence-Number: 10800 Tim Perdue writes: > I have created a function in pl/pgsql to modify a row before it gets put ^^^^^^^^^^^^^^^^^^^ > into the database, but it seems my modification is being ignored, and > the unmodified row is being inserted. > CREATE TRIGGER projtask_insert_depend_trig AFTER INSERT ON project_task ^^^^^^^^^^^^ > FOR EACH ROW EXECUTE PROCEDURE projtask_insert_depend(); I believe I see your problem ... regards, tom lane