pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jonathan Gardner <jgardner@jonathangardner.net>
To: Anagha Joshi <ajoshi@nulinkinc.com>
To: pgsql-admin@postgresql.org
Subject: Re: Latest transcation
Date: Thu, 19 Jun 2003 06:56:06 -0700
Message-ID: <200306190656.08040.jgardner@jonathangardner.net> (raw)
In-Reply-To: <FF851C7EEB75954F9BCFB5CA117AB1EC61A430@delta.nulinkinc.com>
References: <FF851C7EEB75954F9BCFB5CA117AB1EC61A430@delta.nulinkinc.com>

-----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-----



view thread (7+ messages)  latest in thread

Message-ID: <200306190656.08040.jgardner@jonathangardner.net>
Permalink:  ../200306190656.08040.jgardner@jonathangardner.net/
Also on:    postgresql.org/message-id/200306190656.08040.jgardner@jonathangardner.net

 · 

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: jgardner@jonathangardner.net, ajoshi@nulinkinc.com
  Subject: Re: Latest transcation
  In-Reply-To: <200306190656.08040.jgardner@jonathangardner.net>
  References: <FF851C7EEB75954F9BCFB5CA117AB1EC61A430@delta.nulinkinc.com> <200306190656.08040.jgardner@jonathangardner.net>

* 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