Re: How to safely compare transaction id?

Поиск
Список
Период
Сортировка
От Marko Kreen
Тема Re: How to safely compare transaction id?
Дата
Msg-id e51f66da0801110725o391bb0eh7d8c2095381493dc@mail.gmail.com
обсуждение исходный текст
Ответ на How to safely compare transaction id?  (alphax <alphax@vip.163.com>)
Список pgsql-general
On 1/11/08, alphax <alphax@vip.163.com> wrote:
> I want to compare the record's transaction id in sql statements or
> PL/pgSQL stored procedure. Are there any system function or operator can
> safely(transaction id wraparound safed) compare the transaction id?

In 8.3 there are txid functions that export 8byte wraparound-safe
transaction id, that can be safely stored in user tables:

http://developer.postgresql.org/pgdocs/postgres/functions-info.html#FUNCTIONS-TXID-SNAPSHOT

For 8.2 and below you can get them as external module from
Skytools package: http://pgfoundry.org/projects/skytools

--
marko

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

Предыдущее
От: Thomas Kellerer
Дата:
Сообщение: Re: alter varchar() column length?
Следующее
От: João Paulo Zavanela
Дата:
Сообщение: Search connections created per day