Re: Autovacuum vs statement_timeout - Mailing list pgsql-hackers

From Jim C. Nasby
Subject Re: Autovacuum vs statement_timeout
Date
Msg-id 20070417223855.GE72669@nasby.net
Whole thread Raw
In response to Re: Autovacuum vs statement_timeout  ("Joshua D. Drake" <jd@commandprompt.com>)
Responses Re: Autovacuum vs statement_timeout
List pgsql-hackers
On Tue, Apr 17, 2007 at 12:51:51PM -0700, Joshua D. Drake wrote:
> Jim C. Nasby wrote:
> >On Sun, Apr 01, 2007 at 12:36:01AM +0200, Peter Eisentraut wrote:
> >>Tom Lane wrote:
> >>>I seem to remember that we'd agreed that autovacuum should ignore any
> >>>globally set statement_timeout, on the grounds that a poorly chosen
> >>>setting could indefinitely prevent large tables from being vacuumed.
> >>On a vaguely related matter, should programs such as pg_dump, vacuumdb, 
> >>and reindexdb disable statement_timeout?
> >
> >Youch... yes, they should IMO. Add clusterdb, pg_dumpall and pg_restore
> >to that list as well (really, pg_dump(all) should output a command to
> >disable statement_timeout).
> 
> I don't know if that should be a default or not. It is certainly easy 
> enough to disable it should you want to.

How would you disable it for those command-line utilities? Or are you
referring to disabling it via an ALTER ROLE SET ... for superusers?

ISTM current behavior is a bit of a foot-gun. These are administrative
shell commands that aren't going to be run by Joe-user.
-- 
Jim Nasby                                            jim@nasby.net
EnterpriseDB      http://enterprisedb.com      512.569.9461 (cell)


pgsql-hackers by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: SoC Students/Projects selected
Next
From: Tatsuo Ishii
Date:
Subject: Re: utf8 COPY DELIMITER?