From: Jonathan Gardner <jgardner@jonathangardner.net>
To: Anagha Joshi <ajoshi@nulinkinc.com>
To: Bruno Wolff III <bruno@wolff.to>
Cc: pgsql-admin@postgresql.org
Cc: pgsql-sql@postgresql.org
Subject: Re: Latest transcation
Date: Thu, 19 Jun 2003 07:07:36 -0700
Message-ID: <200306190707.38082.jgardner@jonathangardner.net> (raw)
In-Reply-To: <FF851C7EEB75954F9BCFB5CA117AB1EC092831@delta.nulinkinc.com>
References: <FF851C7EEB75954F9BCFB5CA117AB1EC092831@delta.nulinkinc.com>
-----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 was
done in a seperate thread or even process. With threads, you can use shared
variables and semaphores. With processes, you can use some form of IPC or
shared memory.
If you decide to go at an application layer, it is beyond the scope of the
ADMIN list, and better suited for a discussion with your peers in that
language and environment.
If you go for a server-side solution (because the application doesn't know
what was last inserted and when), then you'll want to use triggers as I
described in a previous posting.
- --
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+8cOoWgwF3QvpWNwRAmGkAJ4pE8Eb9V/kiyBFqLCqr/2nNqA3HwCg0PE2
2TCK7YF50MKLwbUurS1aqlY=
=hvKY
-----END PGP SIGNATURE-----
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: jgardner@jonathangardner.net, ajoshi@nulinkinc.com, bruno@wolff.to, pgsql-admin@postgresql.org
Subject: Re: Latest transcation
In-Reply-To: <200306190707.38082.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