X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id C81B930E53E for ; Thu, 19 Jun 2003 13:56:21 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 62930-02 for ; Thu, 19 Jun 2003 10:56:11 -0300 (ADT) Received: from irko.smoothcorp.com (unknown [208.49.241.41]) by svr1.postgresql.org (Postfix) with ESMTP id 42C7F30E519 for ; Thu, 19 Jun 2003 10:56:09 -0300 (ADT) Received: from jgardner.ifloor.com ([10.0.1.63]) by irko.smoothcorp.com with esmtp (Exim 4.12) id 19SztY-0006Ee-00; Thu, 19 Jun 2003 06:56:08 -0700 Received: from jgardner.ifloor.com (localhost.localdomain [127.0.0.1]) by jgardner.ifloor.com (8.12.8/8.12.8) with ESMTP id h5JDu9wr028275; Thu, 19 Jun 2003 06:56:09 -0700 Received: from localhost (localhost [[UNIX: localhost]]) by jgardner.ifloor.com (8.12.8/8.12.8/Submit) id h5JDu8v2028273; Thu, 19 Jun 2003 06:56:08 -0700 From: Jonathan Gardner To: "Anagha Joshi" , Subject: Re: Latest transcation Date: Thu, 19 Jun 2003 06:56:06 -0700 User-Agent: KMail/1.5 References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Description: clearsigned data Content-Disposition: inline Message-Id: <200306190656.08040.jgardner@jonathangardner.net> X-SA-Exim-Rcpt-To: ajoshi@nulinkinc.com, pgsql-admin@postgresql.org X-SA-Exim-Scanned: No; SAEximRunCond expanded to false X-Archive-Number: 200306/256 X-Sequence-Number: 9247 -----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=20 triggers and a separate table to store the history in. When the transaction= =20 that modified the table commits, the modification to the history table from= =20 the trigger will commit also, in the order they committed. - --=20 Jonathan Gardner (was jgardn@alumni.washington.edu) Live Free, Use Linux! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+8cD2WgwF3QvpWNwRAnoAAJ4j/gaXd2V748O2M/8pNvY9IYhGkgCeNhe2 KjXh8NwRMtMtfYFvPX69wWE=3D =3D8Aa3 -----END PGP SIGNATURE-----