Re: [PERFORM] Avoiding Refreezing XIDs Repeatedly

2015-02-09 Thread bkrug
The problem I'm facing is that I have many large (several GB) tables that are not being changed (they are several days old) but auto-vacuum keeps scanning and updating them every time the xid wraps around and thus my rsync back-up process sees that the disk files have changed and must copy them.

Re: [PERFORM] Avoiding Refreezing XIDs Repeatedly

2015-02-09 Thread bkrug
Matheus de Oliveira wrote > 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. Should the relfrozenxid of pg_class then equal 2 for very old and already vacuumed tables? Because t

[PERFORM] Avoiding Refreezing XIDs Repeatedly

2015-02-09 Thread bkrug
For a large database with lots of activity (transactions), the XIDs are very often re-frozen by AutoVacuum. Even when autovacuum_freeze_max_age is set to 2 billion, the XIDs can wrap every couple of days on an active database. This causes unnecessary changes to otherwise unmodified files and archiv