Re: Latest transcation

Поиск
Список
Период
Сортировка
От Jonathan Gardner
Тема Re: Latest transcation
Дата
Msg-id 200306190656.08040.jgardner@jonathangardner.net
обсуждение исходный текст
Ответ на Latest transcation  ("Anagha Joshi" <ajoshi@nulinkinc.com>)
Список pgsql-admin
-----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@jonathangardner.net>
(was jgardn@alumni.washington.edu)
Live Free, Use Linux!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+8cD2WgwF3QvpWNwRAnoAAJ4j/gaXd2V748O2M/8pNvY9IYhGkgCeNhe2
KjXh8NwRMtMtfYFvPX69wWE=
=8Aa3
-----END PGP SIGNATURE-----

В списке pgsql-admin по дате отправления:

Предыдущее
От: "Anagha Joshi"
Дата:
Сообщение: Re: Latest transcation
Следующее
От: Jonathan Gardner
Дата:
Сообщение: Re: Latest transcation