Re: [GENERAL] Getting acces to MVCC version number

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [GENERAL] Getting acces to MVCC version number
Дата
Msg-id 2566.1032557012@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Getting acces to MVCC version number  (Jean-Luc Lachance <jllachan@nsd.ca>)
Список pgsql-sql
Jean-Luc Lachance <jllachan@nsd.ca> writes:
> How about making available the MVCC last version number just like oid is
> available.  This would simplify a lot of table design.  You know, having
> to add a field "updated::timestamp" to detect when a record was updated
> while viewing it (a la pgaccess).
> That way, if the version number do not match, one would know that the
> reccord was updated since last retrieved.

> What do think?

I think it's already there: see xmin and cmin.  Depending on your needs,
testing xmin might be enough (you'd only need to pay attention to cmin
if you wanted to notice changes within your own transaction).

            regards, tom lane

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

Предыдущее
От: Aaron Held
Дата:
Сообщение: Re: [GENERAL] Monitoring a Query
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Performance w/ multiple WHERE clauses