From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Arctic Toucan <arctic_toucan(at)hotmail(dot)com> |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: How can I avoid Frozenxid wraparound on failover to a standby(PITR) database? |
Date: | 2008-09-05 16:52:17 |
Message-ID: | 26690.1220633537@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Arctic Toucan <arctic_toucan(at)hotmail(dot)com> writes:
> I next started looking at the age(refrozenxid) of the tables in my DB, and was surprised to see that over 4000 of the 5000 tables in this DB had an age over 2Billion. So thats 4000 tables representing over a terabyte of data that need to be vacuumed! I am now vacuuming those tables one at a time, which is taking a long time(This is a scripted process). So there is no way I could have vacuumed the tables quickly enough even given a warning of impending XID wraparound.
> Looking through the support mailing lists(Bugs) I see some discussion about the frozenxid updates on the master not being propogated to the slave through the WAL logs, and comments from Tom, Alvaro and Heikki suggesting that they were looking into a solution for PG 8.3 and needed a way around the problem in PG 8.2.
Hmm ... that did get fixed in 8.2
http://archives.postgresql.org/pgsql-committers/2006-11/msg00026.php
so I'm a bit confused about what happened here. What were your
autovacuum settings on the old master? Particularly
autovacuum_freeze_max_age?
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Arctic Toucan | 2008-09-05 18:08:02 | Re: How can I avoid Frozenxid wraparound on failover to a standby(PITR) database? |
Previous Message | Brad Nicholson | 2008-09-05 15:46:28 | Converting a Database from SQL_ASCII to UTF8 |