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 32C0E52838 for ; Wed, 8 Jun 2005 16:51:41 -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 32629-01 for ; Wed, 8 Jun 2005 19:51:37 +0000 (GMT) Received: from hotmail.com (bay23-f8.bay23.hotmail.com [64.4.22.58]) by svr1.postgresql.org (Postfix) with ESMTP id 432C05283C for ; Wed, 8 Jun 2005 16:51:36 -0300 (ADT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 8 Jun 2005 12:51:36 -0700 Message-ID: Received: from 160.33.98.118 by by23fd.bay23.hotmail.msn.com with HTTP; Wed, 08 Jun 2005 19:51:35 GMT X-Originating-IP: [160.33.98.118] X-Originating-Email: [mor4321@hotmail.com] X-Sender: mor4321@hotmail.com From: "David Hofmann" To: pgsql-sql@postgresql.org Subject: Rule Date: Wed, 08 Jun 2005 15:51:35 -0400 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 08 Jun 2005 19:51:36.0062 (UTC) FILETIME=[7A6049E0:01C56C63] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=2.266 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST, FROM_ENDS_IN_NUMS, MSGID_FROM_MTA_HEADER X-Spam-Level: ** X-Archive-Number: 200506/116 X-Sequence-Number: 21717 I have a table with 3 fields, id, s_data, and time_stamp. The time_stamp field is set to now() by deault. The program that uses this table only uses the id and s_data file. I added and use the time_stamp field to delete old records after a certain time. What I want to do is setup some kind of rule so that whenever a s_data field is updated, that the time_stamp gets update to the current time/date. The program regretab I'm not really familar with rules, I've only used them in a certain places and very limitedly. Any help would be greatly appercated. David Hofmann _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/