Re: [HACKERS] Manual anti-wraparound vacuums

2011-11-11 Thread Bruce Momjian
Heikki Linnakangas wrote: > On 11.11.2011 17:47, Tom Lane wrote: > > Robert Haas writes: > >> On Fri, Nov 11, 2011 at 9:59 AM, Tom Lane wrote: > >>> It occurs to me to wonder how this scenario will interact with the > >>> recent changes to let VACUUM skip pages. AFAIR there is not a way for a >

Re: [HACKERS] Manual anti-wraparound vacuums

2011-11-11 Thread Tom Lane
Heikki Linnakangas writes: > On second thought, if XID wraparound is close enough that the DBA has to > log in to do manual vacuums to avoid it, relfrozenxid of the > trouble-making tables are surely older than default > vacuum_freeze_table_age, so plain VACUUM is enough to scan the whole table

Re: [HACKERS] Manual anti-wraparound vacuums

2011-11-11 Thread Heikki Linnakangas
On 11.11.2011 19:15, Heikki Linnakangas wrote: On 11.11.2011 17:47, Tom Lane wrote: (3) In disaster recovery scenarios, the last thing we want is to be imposing extra conditions on what an already-stressed DBA has to do to fix things; especially extra conditions that are different from the way i

Re: [HACKERS] Manual anti-wraparound vacuums

2011-11-11 Thread Heikki Linnakangas
On 11.11.2011 17:47, Tom Lane wrote: Robert Haas writes: On Fri, Nov 11, 2011 at 9:59 AM, Tom Lane wrote: It occurs to me to wonder how this scenario will interact with the recent changes to let VACUUM skip pages. AFAIR there is not a way for a manual VACUUM to set the anti-wraparound mode,

Re: [HACKERS] Manual anti-wraparound vacuums

2011-11-11 Thread Robert Haas
On Nov 11, 2011, at 10:47 AM, Tom Lane wrote: > Robert Haas writes: >> On Fri, Nov 11, 2011 at 9:59 AM, Tom Lane wrote: >>> In another thread, Alvaro quoted from the manual: >> If for some reason autovacuum fails to clear old XIDs from a table, the >> system will begin to emit warning

Re: [HACKERS] Manual anti-wraparound vacuums

2011-11-11 Thread Tom Lane
Robert Haas writes: > On Fri, Nov 11, 2011 at 9:59 AM, Tom Lane wrote: >> In another thread, Alvaro quoted from the manual: > If for some reason autovacuum fails to clear old XIDs from a table, the > system will begin to emit warning messages like this when the > database's oldest >

Re: [HACKERS] Manual anti-wraparound vacuums

2011-11-11 Thread Alvaro Herrera
Excerpts from Robert Haas's message of vie nov 11 12:29:42 -0300 2011: > On Fri, Nov 11, 2011 at 9:59 AM, Tom Lane wrote: > > In another thread, Alvaro quoted from the manual: > >>       If for some reason autovacuum fails to clear old XIDs from a table, > >> the > >>       system will begin to

Re: [HACKERS] Manual anti-wraparound vacuums

2011-11-11 Thread Robert Haas
On Fri, Nov 11, 2011 at 9:59 AM, Tom Lane wrote: > In another thread, Alvaro quoted from the manual: >>       If for some reason autovacuum fails to clear old XIDs from a table, the >>       system will begin to emit warning messages like this when the >> database's oldest >>       XIDs reach ten

[HACKERS] Manual anti-wraparound vacuums

2011-11-11 Thread Tom Lane
In another thread, Alvaro quoted from the manual: > If for some reason autovacuum fails to clear old XIDs from a table, the > system will begin to emit warning messages like this when the > database's oldest > XIDs reach ten million transactions from the wraparound point: >