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 C788630E850 for ; Thu, 19 Jun 2003 10:27:37 +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 31237-09 for ; Thu, 19 Jun 2003 07:27:27 -0300 (ADT) Received: from wolff.to (wolff.to [66.93.249.74]) by svr1.postgresql.org (Postfix) with SMTP id EC74430E5C1 for ; Thu, 19 Jun 2003 07:27:26 -0300 (ADT) Received: (qmail 10821 invoked by uid 500); 19 Jun 2003 10:30:29 -0000 Date: Thu, 19 Jun 2003 05:30:29 -0500 From: Bruno Wolff III To: Anagha Joshi Cc: pgsql-admin@postgresql.org Subject: Re: Latest transcation Message-ID: <20030619103029.GA10782@wolff.to> Mail-Followup-To: Anagha Joshi , pgsql-admin@postgresql.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i X-Archive-Number: 200306/254 X-Sequence-Number: 9245 On Thu, Jun 19, 2003 at 10:46:22 +0530, Anagha Joshi wrote: > Hi All, > 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? That depends on what you really are trying to do. It sounds like using a sequnce, nextval and currval might work. That could be used to track the latest change in one session. If you try to look at the latest change to a table accross all sessions, things get a bit murky. A more precise description of what you are trying to do might result in some other suggestions.