Re: FrozenTransactionId - Mailing list pgsql-docs

From Egor Rogov
Subject Re: FrozenTransactionId
Date
Msg-id 57CF23F9.10304@postgrespro.ru
Whole thread Raw
In response to Re: FrozenTransactionId  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: FrozenTransactionId  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-docs
On 06.09.2016 15:41, Tom Lane wrote:
> 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.

Okay, I see my mistake now: this old FrozenTransactionId mechanics is
still valid to support upgraded installations.
Anyway, while the description is technically accurate, it is misleading.
Right, it does not say that FrozenTransactionId is what appears on disk,
but what is? There is no such information anywhere in the doc. Since 9.4
frozen transactions have their normal XIDs preserved, so how a user can
tell normal transaction from frozen one? This is what needs to be
explained, I believe.

>
> 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 by date:

Previous
From: mark0978@gmail.com
Date:
Subject: Foreign Table docs are way to brief.
Next
From: Tom Lane
Date:
Subject: Re: FrozenTransactionId