Re: [HACKERS] temporarily stop autovacuum

2009-02-12 Thread Bernd Helmle
--On Mittwoch, Februar 11, 2009 13:18:11 -0500 Robert Haas wrote: In any case it's not difficult to write a script that loops over all of your tables with ALTER TABLE. It's probably not as fast as a single UPDATE statement, but I suspect you'd need to have an enormous number of tables for tha

Re: [HACKERS] temporarily stop autovacuum

2009-02-11 Thread Peter Eisentraut
On Wednesday 11 February 2009 20:10:46 Tom Lane wrote: > AFAIR we pointed out from day one that pg_autovacuum was a temporary > API that we were not promising to keep around.  Anybody who was coding > against it with the expectation that they'd not have to change that code > later was willfully ign

Re: [HACKERS] temporarily stop autovacuum

2009-02-11 Thread ITAGAKI Takahiro
Alvaro Herrera wrote: > I'm not sure that this calls for a change in autovacuum itself; it seems > to be that whatwe really need is the ability to change postgresql.conf > settings from the SQL interface. Sure. 'SET GLOBAL autovacuum = off' is a TODO item. I have another idea that autovacuum

Re: [HACKERS] temporarily stop autovacuum

2009-02-11 Thread Robert Haas
On Wed, Feb 11, 2009 at 1:10 PM, Tom Lane wrote: > Alvaro Herrera writes: >> Peter Eisentraut wrote: >>> More generally, it was pointed out to me that users apparently do >>> updates of pg_autovacuum to change settings on a bunch of tables at >>> once. We might get some complaints if we remove t

Re: [HACKERS] temporarily stop autovacuum

2009-02-11 Thread Tom Lane
Alvaro Herrera writes: > Peter Eisentraut wrote: >> More generally, it was pointed out to me that users apparently do >> updates of pg_autovacuum to change settings on a bunch of tables at >> once. We might get some complaints if we remove that facility. > Hmm, argh. Maybe we do need the ru

Re: [HACKERS] temporarily stop autovacuum

2009-02-11 Thread Joshua D. Drake
On Wed, 2009-02-11 at 14:21 -0300, Alvaro Herrera wrote: > Peter Eisentraut wrote: > > Joshua D. Drake wrote: > > >> It would be a significant hack but you could update pg_autovacuum to set > >> all relations to false. > > > > Which will no longer work in 8.4. > > > > More generally, it was pointe

Re: [HACKERS] temporarily stop autovacuum

2009-02-11 Thread Alvaro Herrera
Peter Eisentraut wrote: > Joshua D. Drake wrote: >> It would be a significant hack but you could update pg_autovacuum to set >> all relations to false. > > Which will no longer work in 8.4. > > More generally, it was pointed out to me that users apparently do > updates of pg_autovacuum to change

Re: [HACKERS] temporarily stop autovacuum

2009-02-11 Thread Robert Haas
On Tue, Feb 10, 2009 at 8:53 AM, Alvaro Herrera wrote: > I'm not sure that this calls for a change in autovacuum itself; it seems > to be that whatwe really need is the ability to change postgresql.conf > settings from the SQL interface. This has been discussed at length > elsewhere, and I think

Re: [HACKERS] temporarily stop autovacuum

2009-02-11 Thread Peter Eisentraut
Joshua D. Drake wrote: On Tue, 2009-02-10 at 10:15 +0900, Tatsuo Ishii wrote: Hi, Is there any way to stop autovacuum temporarily?(other than edit postgresql.conf and reload it) Pgpool-II does not want autovacuum running while doing "onlie recovery". It would be a significant hack but you cou

Re: [HACKERS] temporarily stop autovacuum

2009-02-10 Thread Alvaro Herrera
Tatsuo Ishii wrote: > Hi, > > Is there any way to stop autovacuum temporarily?(other than edit > postgresql.conf and reload it) Hmm, no, that's the only way. I'm not sure that this calls for a change in autovacuum itself; it seems to be that whatwe really need is the ability to change postgresql

Re: [HACKERS] temporarily stop autovacuum

2009-02-09 Thread Tatsuo Ishii
> > Is there any way to stop autovacuum temporarily?(other than edit > > postgresql.conf and reload it) Pgpool-II does not want autovacuum > > running while doing "onlie recovery". > > It would be a significant hack but you could update pg_autovacuum to set > all relations to false. Thanks. Maybe

Re: [HACKERS] temporarily stop autovacuum

2009-02-09 Thread Joshua D. Drake
On Tue, 2009-02-10 at 10:15 +0900, Tatsuo Ishii wrote: > Hi, > > Is there any way to stop autovacuum temporarily?(other than edit > postgresql.conf and reload it) Pgpool-II does not want autovacuum > running while doing "onlie recovery". It would be a significant hack but you could update pg_auto

[HACKERS] temporarily stop autovacuum

2009-02-09 Thread Tatsuo Ishii
Hi, Is there any way to stop autovacuum temporarily?(other than edit postgresql.conf and reload it) Pgpool-II does not want autovacuum running while doing "onlie recovery". -- Tatsuo Ishii SRA OSS, Inc. Japan -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes t