Re: Latest transcation - Mailing list pgsql-admin

From Jonathan Gardner
Subject Re: Latest transcation
Date
Msg-id 200306190656.08040.jgardner@jonathangardner.net
Whole thread Raw
In response to Latest transcation  ("Anagha Joshi" <ajoshi@nulinkinc.com>)
List pgsql-admin
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 18 June 2003 22:16, Anagha Joshi wrote:
> Is there any way to know programatically which is the latest
> insert/update occured to a particular table?
> What are the values which are inserted/updated to that table?
>

If you want to record transaction history on a table, you'll need to use
triggers and a separate table to store the history in. When the transaction
that modified the table commits, the modification to the history table from
the trigger will commit also, in the order they committed.

- --
Jonathan Gardner <jgardner@jonathangardner.net>
(was jgardn@alumni.washington.edu)
Live Free, Use Linux!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+8cD2WgwF3QvpWNwRAnoAAJ4j/gaXd2V748O2M/8pNvY9IYhGkgCeNhe2
KjXh8NwRMtMtfYFvPX69wWE=
=8Aa3
-----END PGP SIGNATURE-----

pgsql-admin by date:

Previous
From: "Anagha Joshi"
Date:
Subject: Re: Latest transcation
Next
From: Jonathan Gardner
Date:
Subject: Re: Latest transcation