Re: Autovacuum vs statement_timeout - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: Autovacuum vs statement_timeout
Date
Msg-id 20070418073146.GA20431@svr2.hagander.net
Whole thread Raw
In response to Re: Autovacuum vs statement_timeout  (Bruce Momjian <bruce@momjian.us>)
Responses Re: Autovacuum vs statement_timeout
List pgsql-hackers
On Tue, Apr 17, 2007 at 10:33:21PM -0400, Bruce Momjian wrote:
> Alvaro Herrera wrote:
> > I think that is too strong an assumption, which is why I'm planning to
> > back-patch the change to reset statement_timeout to 0 on autovacuum till
> > 8.0, as discussed.  I think I should also backpatch the change to set
> > zero_damaged_pages as well (which is not on 8.0 AFAIR).
> > 
> > It's very very easy to change things in postgresql.conf.  Actually
> > knowing what you are doing (i.e. thinking on the consequences on VACUUM
> > and such) is a whole another matter.
> 
> Frankly, setting statement_timeout in postgresql.conf seems so risky in
> so many ways, perhaps we just need to document that the parameter
> probably should not be set in postgresql.conf, and why.

I'd suggest doing both. Tell people that it's dangerous (probably to the
point of a comment in the sample config file), but *also* force it in
pg_dump since you can't really expect people to read the documentation.

//MAgnus



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Hacking on PostgreSQL via GIT
Next
From: Richard Huxton
Date:
Subject: Re: Can't ri_KeysEqual() consider two nulls as equal?