Re: Avoiding Refreezing XIDs Repeatedly - Mailing list pgsql-performance

From Matheus de Oliveira
Subject Re: Avoiding Refreezing XIDs Repeatedly
Date
Msg-id CAJghg4KAFiFnH6inJ+K7Bfef9bgGYt7E6MM3rkevqiT=Q245HQ@mail.gmail.com
Whole thread Raw
In response to Avoiding Refreezing XIDs Repeatedly  (bkrug <bkrug@usatech.com>)
Responses Re: Avoiding Refreezing XIDs Repeatedly
Re: Avoiding Refreezing XIDs Repeatedly
List pgsql-performance

On Mon, Feb 9, 2015 at 1:58 PM, bkrug <bkrug@usatech.com> wrote:
Couldn't postgres reserve a special XID that is never available for normal
transactions but that indicates that any transaction can see it because it
is so old? Then instead of constantly having to freeze old XIDs each time
the XID is going to wrap, vacuum can just set it to the special XID and
never touch it again unless something really changes.


It changed in recent versions (9.3 or 9.4, I don't recall exactly which) and moved to tuple header, but what you described is exactly what was done, the xid was 2.

Anyway, an already frozen tuple won't be "re-frozen" again.

Regards,
--
Matheus de Oliveira
Analista de Banco de Dados
Dextra Sistemas - MPS.Br nível F!
www.dextra.com.br/postgres

pgsql-performance by date:

Previous
From: bkrug
Date:
Subject: Avoiding Refreezing XIDs Repeatedly
Next
From: Alvaro Herrera
Date:
Subject: Re: Avoiding Refreezing XIDs Repeatedly