pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mandar M Bhosale <mbhosale@cybage.com>
To: pgsql-admin@postgresql.org
Subject: Post Gres triggers for trail
Date: Mon, 25 Apr 2005 20:05:51 +0530
Message-ID: <JAEOKPNNJAEFOLDGJAFFGEODCEAA.mbhosale@cybage.com> (raw)

I have difficulty in setting a trigger to have trail of my project

I need to update the modified_date of my database tables through trigger as

CREATE OR REPLACE TRIGGER taril_trigger AFTER UPDATE ON test_trigger FOR
EACH ROW
EXECUTE PROCEDURE pro_trail();

pro_trail(){
BEGIN
NEW.modified_date=(select current_timestamp)
return NULL;
END;
}

Can anybody help me out!!!
Mandar  M. Bhosale

view thread (2+ messages)  latest in thread

Message-ID: <JAEOKPNNJAEFOLDGJAFFGEODCEAA.mbhosale@cybage.com>
Permalink:  ../JAEOKPNNJAEFOLDGJAFFGEODCEAA.mbhosale@cybage.com/
Also on:    postgresql.org/message-id/JAEOKPNNJAEFOLDGJAFFGEODCEAA.mbhosale@cybage.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: mbhosale@cybage.com
  Subject: Re: Post Gres triggers for trail
  In-Reply-To: <JAEOKPNNJAEFOLDGJAFFGEODCEAA.mbhosale@cybage.com>
  References: <JAEOKPNNJAEFOLDGJAFFGEODCEAA.mbhosale@cybage.com>

* 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