From: | "Anagha Joshi" <ajoshi(at)nulinkinc(dot)com> |
---|---|
To: | "Jonathan Gardner" <jgardner(at)jonathangardner(dot)net> |
Cc: | <pgsql-admin(at)postgresql(dot)org>, <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: Latest transcation |
Date: | 2003-06-20 08:27:04 |
Message-ID: | FF851C7EEB75954F9BCFB5CA117AB1EC092832@delta.nulinkinc.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-sql |
Yes...I'm aware of that and have tried also by maintaining extra table.
But how to to the following:
1. If insertion takes place, I want to return to the client the
values (with field names of course) which are inserted into the
tables. In each case table might be different.
2. If modification takes places, I want to know the values which
are modified with field names and return them to the client.
More precisely,
My C++ client --
'
'
"
Transcation begin
insert/update query to the backend is fired.
//control is tranferred to the trigger
//After trigger procedure is executed, I want at this
point the values inserted/modified so //as to pass them back
Transcation end
'
'
Pls. help
Anagha
-----Original Message-----
From: Jonathan Gardner [mailto:jgardner(at)jonathangardner(dot)net]
Sent: Thursday, June 19, 2003 7:26 PM
To: Anagha Joshi; pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] Latest transcation
-----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
triggers and a separate table to store the history in. When the
transaction
that modified the table commits, the modification to the history table
from
the trigger will commit also, in the order they committed.
- --
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+8cD2WgwF3QvpWNwRAnoAAJ4j/gaXd2V748O2M/8pNvY9IYhGkgCeNhe2
KjXh8NwRMtMtfYFvPX69wWE=
=8Aa3
-----END PGP SIGNATURE-----
From | Date | Subject | |
---|---|---|---|
Next Message | Lucas Brasilino | 2003-06-20 13:18:15 | pg_ctl reload makes postmaster read enviroment variables again?? |
Previous Message | P G | 2003-06-20 02:05:38 | How do I disconnect other users??? |
From | Date | Subject | |
---|---|---|---|
Next Message | Jonathan Gardner | 2003-06-20 13:43:18 | Re: Latest transcation |
Previous Message | Együd Csaba | 2003-06-20 07:02:58 | Re: Getting one row for each subquery row...? |