Re: Latest transcation

From: Jonathan Gardner <jgardner(at)jonathangardner(dot)net>
To: "Anagha Joshi" <ajoshi(at)nulinkinc(dot)com>, "Bruno Wolff III" <bruno(at)wolff(dot)to>
Cc: <pgsql-admin(at)postgresql(dot)org>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Latest transcation
Date: 2003-06-19 14:07:36
Message-ID: 200306190707.38082.jgardner@jonathangardner.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-sql

-----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(at)jonathangardner(dot)net>
(was jgardn(at)alumni(dot)washington(dot)edu)
Live Free, Use Linux!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+8cOoWgwF3QvpWNwRAmGkAJ4pE8Eb9V/kiyBFqLCqr/2nNqA3HwCg0PE2
2TCK7YF50MKLwbUurS1aqlY=
=hvKY
-----END PGP SIGNATURE-----

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Jonathan Gardner 2003-06-19 14:11:44 Re: Database Encryption
Previous Message Jonathan Gardner 2003-06-19 13:56:06 Re: Latest transcation

Browse pgsql-sql by date

  From Date Subject
Next Message Guy Fraser 2003-06-19 15:37:07 Re: [GENERAL] Request for advice: Table design
Previous Message Anagha Joshi 2003-06-19 11:41:12 Re: Latest transcation