| От | Tom Lane |
|---|---|
| Тема | Re: Data loss, vacuum, transaction wrap-around |
| Дата | |
| Msg-id | 23220.1108762123@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Data loss, vacuum, transaction wrap-around (Greg Stark <gsstark@mit.edu>) |
| Список | pgsql-hackers |
Greg Stark <gsstark@mit.edu> writes:
> There could be a per-database "oldest xid" that any vacuum on any table
> updates (by skimming all the "oldest xid"s for the current database). If
> that's stored in the shared pg_database table then it's accessible regardless
> of what database you connect to, no?
You mean like pg_database.datfrozenxid?
The problem is not that we don't have the data. The problem is getting
the data to where it's needed, which is GetNewTransactionId(). That
routine cannot be responsible for finding it out for itself, because we
haven't yet started a transaction at the time where we need to know
if it's safe to consume an XID.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера