Re: [GENERAL] Problem with autovacuum and pg_autovacuum

2007-07-08 Thread Alvaro Herrera
Andreas 'ads' Scherbaum wrote: On Sat, 7 Jul 2007 00:12:32 +0200 Andreas 'ads' Scherbaum wrote: On Fri, 6 Jul 2007 12:06:41 -0400 Alvaro Herrera wrote: Andreas 'ads' Scherbaum wrote: The value is '0' for all columns in all entries, except 'vacrelid' and 'enabled'. Can a

Re: [GENERAL] Problem with autovacuum and pg_autovacuum

2007-07-08 Thread Andreas 'ads' Scherbaum
On Sun, 8 Jul 2007 19:12:46 -0400 Alvaro Herrera wrote: Oops :-( We should certainly make an effort to check the validity of the values in pg_autovacuum, but 0 is a perfectly valid value, so the check would not help you any in this case :-( Apparently not, taken into account, that the

Re: [GENERAL] Problem with autovacuum and pg_autovacuum

2007-07-07 Thread Andreas 'ads' Scherbaum
On Sat, 7 Jul 2007 00:12:32 +0200 Andreas 'ads' Scherbaum wrote: On Fri, 6 Jul 2007 12:06:41 -0400 Alvaro Herrera wrote: Andreas 'ads' Scherbaum wrote: The value is '0' for all columns in all entries, except 'vacrelid' and 'enabled'. Can a VACUUM run happen, even if enabled is set

Re: [GENERAL] Problem with autovacuum and pg_autovacuum

2007-07-06 Thread Pavan Deolasee
On 7/5/07, Andreas 'ads' Scherbaum [EMAIL PROTECTED] wrote: Hello, On Wed, 4 Jul 2007 18:04:35 -0400 Alvaro Herrera wrote: Most likely it is worried about XID wraparound, and those are precisely the tables that need urgent vacuumed because they haven't been vacuumed in a long time. No,

Re: [GENERAL] Problem with autovacuum and pg_autovacuum

2007-07-06 Thread Andreas 'ads' Scherbaum
On Wed, 4 Jul 2007 19:47:12 -0400 Alvaro Herrera wrote: Andreas 'ads' Scherbaum wrote: Oh. It's not the age. Please let us look at the pg_stat_user_tables entries for the involved tables? If it's picking the same tables maybe pgstats has stale info, but why is it not updating it? Hmm,

Re: [GENERAL] Problem with autovacuum and pg_autovacuum

2007-07-06 Thread Alvaro Herrera
Andreas 'ads' Scherbaum wrote: On Fri, 6 Jul 2007 11:30:19 +0530 Pavan Deolasee wrote: Hello, On 7/5/07, Andreas 'ads' Scherbaum [EMAIL PROTECTED] wrote: On Wed, 4 Jul 2007 18:04:35 -0400 Alvaro Herrera wrote: Most likely it is worried about XID wraparound, and those are

Re: [GENERAL] Problem with autovacuum and pg_autovacuum

2007-07-06 Thread Andreas 'ads' Scherbaum
On Fri, 6 Jul 2007 11:30:19 +0530 Pavan Deolasee wrote: Hello, On 7/5/07, Andreas 'ads' Scherbaum [EMAIL PROTECTED] wrote: On Wed, 4 Jul 2007 18:04:35 -0400 Alvaro Herrera wrote: Most likely it is worried about XID wraparound, and those are precisely the tables that need urgent

Re: [GENERAL] Problem with autovacuum and pg_autovacuum

2007-07-06 Thread Andreas 'ads' Scherbaum
On Fri, 6 Jul 2007 12:06:41 -0400 Alvaro Herrera wrote: Andreas 'ads' Scherbaum wrote: On Fri, 6 Jul 2007 11:30:19 +0530 Pavan Deolasee wrote: On 7/5/07, Andreas 'ads' Scherbaum [EMAIL PROTECTED] wrote: On Wed, 4 Jul 2007 18:04:35 -0400 Alvaro Herrera wrote: Most likely

[GENERAL] Problem with autovacuum and pg_autovacuum

2007-07-04 Thread Andreas 'ads' Scherbaum
Hello, we got a small problem with auto_vacuum: since we have some big tables which have heavy read/write access, we tried to exclude this tables from autovacuum: database1=# select vacrelid,enabled,(select relname from pg_class where oid=vacrelid) as relname from pg_autovacuum; vacrelid |

Re: [GENERAL] Problem with autovacuum and pg_autovacuum

2007-07-04 Thread Alvaro Herrera
Andreas 'ads' Scherbaum wrote: Hello, we got a small problem with auto_vacuum: since we have some big tables which have heavy read/write access, we tried to exclude this tables from autovacuum: database1=# select vacrelid,enabled,(select relname from pg_class where oid=vacrelid) as

Re: [GENERAL] Problem with autovacuum and pg_autovacuum

2007-07-04 Thread Andreas 'ads' Scherbaum
Hello, On Wed, 4 Jul 2007 18:04:35 -0400 Alvaro Herrera wrote: Most likely it is worried about XID wraparound, and those are precisely the tables that need urgent vacuumed because they haven't been vacuumed in a long time. No, autovacuum is doing this with every run. Beside this, the

Re: [GENERAL] Problem with autovacuum and pg_autovacuum

2007-07-04 Thread Alvaro Herrera
Andreas 'ads' Scherbaum wrote: Hello, On Wed, 4 Jul 2007 18:04:35 -0400 Alvaro Herrera wrote: Most likely it is worried about XID wraparound, and those are precisely the tables that need urgent vacuumed because they haven't been vacuumed in a long time. No, autovacuum is doing

Re: [GENERAL] Problem with autovacuum and pg_autovacuum

2007-07-04 Thread Andreas 'ads' Scherbaum
Hello, On Wed, 4 Jul 2007 18:40:15 -0400 Alvaro Herrera wrote: Andreas 'ads' Scherbaum wrote: On Wed, 4 Jul 2007 18:04:35 -0400 Alvaro Herrera wrote: Most likely it is worried about XID wraparound, and those are precisely the tables that need urgent vacuumed because they haven't

Re: [GENERAL] Problem with autovacuum and pg_autovacuum

2007-07-04 Thread Alvaro Herrera
Andreas 'ads' Scherbaum wrote: Hello, On Wed, 4 Jul 2007 18:40:15 -0400 Alvaro Herrera wrote: Andreas 'ads' Scherbaum wrote: On Wed, 4 Jul 2007 18:04:35 -0400 Alvaro Herrera wrote: Most likely it is worried about XID wraparound, and those are precisely the tables that