pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Hofmann <mor4321@hotmail.com>
To: pgsql-sql@postgresql.org
Subject: Rule
Date: Wed, 08 Jun 2005 15:51:35 -0400
Message-ID: <BAY23-F8CFA7DB94693F0651B97BBBFD0@phx.gbl> (raw)

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/




view thread (7+ messages)  latest in thread

Message-ID: <BAY23-F8CFA7DB94693F0651B97BBBFD0@phx.gbl>
Permalink:  ../BAY23-F8CFA7DB94693F0651B97BBBFD0@phx.gbl/
Also on:    postgresql.org/message-id/BAY23-F8CFA7DB94693F0651B97BBBFD0@phx.gbl

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: mor4321@hotmail.com
  Subject: Re: Rule
  In-Reply-To: <BAY23-F8CFA7DB94693F0651B97BBBFD0@phx.gbl>

* 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