Re: FrozenTransactionId

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: FrozenTransactionId
Дата
Msg-id 16060.1473165694@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: FrozenTransactionId  (Egor Rogov <e.rogov@postgrespro.ru>)
Ответы Re: FrozenTransactionId  (Egor Rogov <e.rogov@postgrespro.ru>)
Список pgsql-docs
Egor Rogov <e.rogov@postgrespro.ru> writes:
>> Please find another patch attached. I hope it is a bit easier to
>> review now.

Hmm.  I do not actually see anything wrong with the existing text:
it does not say that FrozenTransactionId is what appears on disk,
it says that frozen tuples are treated as if their xmin were
FrozenTransactionId.  That's an accurate description of the current
implementation.  I'm not sure that removing all mention of special
XIDs is a good thing, especially since they will still exist on-disk
in pg_upgrade'd installations.

It does seem like this paragraph could do with some copy-editing,
but I doubt that removing information is the way to go about that.
What I'd change:
1. Grammar fix: s/effects ... is/effects ... are/
2. Remove the useless phrase ", from an MVCC perspective,"
3. Reorder the sentences just after that, so that we have
"Normal XIDs are compared ... suddenly appear to be in the future.
To prevent this, PostgreSQL reserves a special XID, FrozenTransactionId,
... considered older than every normal XID.
Frozen row versions are treated as if ..."

It might also be worth mentioning explicitly that FrozenTransactionId
can appear on-disk in old installations.  And I'd be slightly tempted
to put in an explanation of BootstrapTransactionId, because users
will see that as well if they look into any system catalogs.

Comments?

            regards, tom lane


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

Предыдущее
От: Egor Rogov
Дата:
Сообщение: Re: FrozenTransactionId
Следующее
От: mark0978@gmail.com
Дата:
Сообщение: Foreign Table docs are way to brief.