X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id F3C83D1B182 for ; Tue, 8 Jun 2004 15:48:26 -0300 (ADT) 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 21536-02 for ; Tue, 8 Jun 2004 18:48:24 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 37DCED1B33F for ; Tue, 8 Jun 2004 15:48:22 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i58ImLDW095596 for ; Tue, 8 Jun 2004 18:48:21 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i58IdTNn094045 for pgsql-sql@postgresql.org; Tue, 8 Jun 2004 18:39:29 GMT From: "kasper" X-Newsgroups: comp.databases.postgresql.sql Subject: Trigger problem Lines: 36 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Message-ID: Date: Tue, 8 Jun 2004 20:38:37 +0100 X-Complaints-To: abuse-dk@tele2.com Organization: Tele2 Internet Kunde To: pgsql-sql@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=2.2 tagged_above=0.0 required=5.0 tests=DNS_FROM_RFCI_DSN, PRIORITY_NO_NAME X-Spam-Level: ** X-Archive-Number: 200406/73 X-Sequence-Number: 18018 Hi guys Im tryint to make a trigger that marks a tuble as changed whenever someone has updated it my table looks something like this create table myTable ( ... changed boolean; ) now ive been working on a trigger and a sp that looks like this, but it doesnt work... create function myFunction returns trigger as ' begin new.changed = true; return new; end; ' language 'plpgsql'; create trigger myTrigger after update on lektioner for each row execute procedure myFunction(); the code compiles, runs, and doesnt whine about anything, but nothing changes... any ideas?? - Kasper