Re: Unique transaction ID

Поиск
Список
Период
Сортировка
От Jaime Casanova
Тема Re: Unique transaction ID
Дата
Msg-id c2d9e70e0601040736g19e8a51i6be9255ad6ab8edd@mail.gmail.com
обсуждение исходный текст
Ответ на Unique transaction ID  (Robert Osowiecki <robson@cavern.pl>)
Ответы Re: Unique transaction ID  (Robert Osowiecki <robson@cavern.pl>)
Список pgsql-general
On 1/4/06, Robert Osowiecki <robson@cavern.pl> wrote:
> Apart from now() function, is there some kind of sequence that advances
> with each transaction started? If not: is it possible to implement that
> using sequences?
>
> Robson.
>
>

it exists a transaction id called XID, you can't get it via sql
though, you need to make a c function and invoke GetTopTransactionId()
(or GetCurrentTransactionId() in versions prior to 8.0)

--
regards,
Jaime Casanova
(DBA: DataBase Aniquilator ;)

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

Предыдущее
От: hubert depesz lubaczewski
Дата:
Сообщение: problem with partitioning and indexed order by
Следующее
От: Andrew - Supernews
Дата:
Сообщение: Re: When it is better to use "timestamp without time zone"?