Re: Syncing an application cache with xmin

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Syncing an application cache with xmin
Дата
Msg-id 7819.1359907780@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Syncing an application cache with xmin  (Jason Dusek <jason.dusek@gmail.com>)
Ответы Re: Syncing an application cache with xmin
Список pgsql-general
Jason Dusek <jason.dusek@gmail.com> writes:
> The idea would be, to store information about the last XID in
> the last sync and search for XIDs committed since then upon
> reconnecting for sync. Perhaps `txid_current_snapshot()'
> preserves enough information. Is this a plausible technique?

Perfectly plausible, and often done in one guise or another.  You can't
expect row XIDs to survive forever --- they'll be replaced by FrozenXID
after awhile to avoid problems due to transaction counter wraparound.
But for delays of a few minutes, in a database with an unremarkable
transaction rate, that's not an issue.

            regards, tom lane

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

Предыдущее
От: Jason Dusek
Дата:
Сообщение: Syncing an application cache with xmin
Следующее
От: Jason Dusek
Дата:
Сообщение: Re: Syncing an application cache with xmin