Re: Autovacuum vs statement_timeout - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Autovacuum vs statement_timeout
Date
Msg-id 13531.1205545479@sss.pgh.pa.us
Whole thread Raw
In response to Re: Autovacuum vs statement_timeout  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> Tom Lane wrote:
>> To me, the killer reason for statement_timeout = 0 during pg_dump
>> is that without it, routine cron-driven dumps could fail, and the
>> user might not notice until he really really needed that dump.

> This concrete case if of course valid, but if you take a step back,
> there are about half a dozen ways to configure the server to make
> pg_dump fail.

Sure, but I think in a lot of situations there is a use-case for
a nonzero default statement_timeout, so it seems to me worthwhile
to protect pg_dump from that rather than let DBAs find out the
hard way.  Also, statement_timeout is particularly nasty in that
you may not see any failure when you first set up and test your
dump strategy.  It'll get you after your tables have grown, or
on a day when there's particularly heavy activity concurrent
with the dump.

> # DON'T SET THIS PARAMETER IN THE CONFIGURATION FILE OR YOUR BACKUPS WILL FAIL

If there are any parameters for which that is actually appropriate,
wouldn't it be *more* appropriate to flat-out prevent them from
being set from the config file?  I believe we have a GUC variable
flag already for things that shouldn't be in the file, but it's
not enforced.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: Commit fest?
Next
From: Tom Lane
Date:
Subject: Re: Commit fest?