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 27BAC30E504; Thu, 19 Jun 2003 14:07:50 +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 63564-06; Thu, 19 Jun 2003 11:07:39 -0300 (ADT) Received: from irko.smoothcorp.com (unknown [208.49.241.41]) by svr1.postgresql.org (Postfix) with ESMTP id 5B73130E548; Thu, 19 Jun 2003 11:07:39 -0300 (ADT) Received: from jgardner.ifloor.com ([10.0.1.63]) by irko.smoothcorp.com with esmtp (Exim 4.12) id 19T04g-0006Jd-00; Thu, 19 Jun 2003 07:07:38 -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 h5JE7dwr028394; Thu, 19 Jun 2003 07:07:39 -0700 Received: from localhost (localhost [[UNIX: localhost]]) by jgardner.ifloor.com (8.12.8/8.12.8/Submit) id h5JE7cTM028392; Thu, 19 Jun 2003 07:07:38 -0700 From: Jonathan Gardner To: "Anagha Joshi" , "Bruno Wolff III" Subject: Re: Latest transcation Date: Thu, 19 Jun 2003 07:07:36 -0700 User-Agent: KMail/1.5 Cc: , 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: <200306190707.38082.jgardner@jonathangardner.net> X-SA-Exim-Rcpt-To: ajoshi@nulinkinc.com, bruno@wolff.to, pgsql-admin@postgresql.org, pgsql-sql@postgresql.org X-SA-Exim-Scanned: No; SAEximRunCond expanded to false X-Archive-Number: 200306/257 X-Sequence-Number: 9248 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday 19 June 2003 04:41, Anagha Joshi wrote: > My client C++ front end is multi-threaded. The above 'transcation' block > is in thread -y . > I want to know the info. abt' last row inserted into table in this > transcation block. > Info contains the details like time of insertion of a row and data in > that row. > > I think this sufficely explains what I want. > There are some things you can do at the application level to record what wa= s=20 done in a seperate thread or even process. With threads, you can use shared= =20 variables and semaphores. With processes, you can use some form of IPC or= =20 shared memory. If you decide to go at an application layer, it is beyond the scope of the= =20 ADMIN list, and better suited for a discussion with your peers in that=20 language and environment. If you go for a server-side solution (because the application doesn't know= =20 what was last inserted and when), then you'll want to use triggers as I=20 described in a previous posting. - --=20 Jonathan Gardner (was jgardn@alumni.washington.edu) Live Free, Use Linux! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+8cOoWgwF3QvpWNwRAmGkAJ4pE8Eb9V/kiyBFqLCqr/2nNqA3HwCg0PE2 2TCK7YF50MKLwbUurS1aqlY=3D =3DhvKY -----END PGP SIGNATURE-----