why pg_class.relfrozenxid needs to be updated for frozen tables (where all rows have xmin=2)?
От | Slava Mudry |
---|---|
Тема | why pg_class.relfrozenxid needs to be updated for frozen tables (where all rows have xmin=2)? |
Дата | |
Msg-id | CAEFxPe3pd5B1ssKvAkUuKULRd+YdYpXTpteZzPtQ88xvrJT5OQ@mail.gmail.com обсуждение исходный текст |
Ответы |
Re: why pg_class.relfrozenxid needs to be updated for frozen
tables (where all rows have xmin=2)?
|
Список | pgsql-performance |
Hi,
I have to deal with badly written system which regularly suffers from transaction wraparound issue. This issue is happenning every 10-14 days and forces me to take system offline and vacuum in single-user mode.Basically the database stores events data in daily partitioned table "daily_events".
What I did, was - I ran vaccum freeze on all partitions (the tables are never touched after they're done for a day). I have also scheduled vacuum-freeze for a partition after it's done writing.В списке pgsql-performance по дате отправления: