pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Sydney-Smith <richard@ibisaustralia.com>
To: pgsql-sql@postgresql.org
Subject: Table History
Date: Fri, 17 Dec 2004 14:23:32 +0800
Message-ID: <002101c4e400$f0164220$13dd8a90@athlon2000> (raw)

A database I maintain has a central transaction table ( FTRANS)
I would like an second table FTRANS_IMAGE to maintain a historical view
of ftrans. So if records in FTRANS are altered we can trace the effect
of those changes in FTRANS_IMAGE.
 
I expect this has been done MANY times and I wonder if a general purpose
trigger exists or if not then can someone point me to an example set of
triggers?
 
I would like to trace an action code "Edit" or "Delete" in FTRANS_IMAGE
in additional to the common fields.
 
thanks muchly
 
Richard Sydney-Smith

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.799 / Virus Database: 543 - Release Date: 19/11/2004
 

view thread (3+ messages)  latest in thread

Message-ID: <002101c4e400$f0164220$13dd8a90@athlon2000>
Permalink:  ../002101c4e400$f0164220$13dd8a90@athlon2000/
Also on:    postgresql.org/message-id/002101c4e400$f0164220$13dd8a90@athlon2000

 · 

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: richard@ibisaustralia.com
  Subject: Re: Table History
  In-Reply-To: <002101c4e400$f0164220$13dd8a90@athlon2000>

* 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