public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tom Lane <[email protected]>
To: Bruce Momjian <[email protected]>
Cc: Alvaro Herrera <[email protected]>
Cc: Daniel Gustafsson <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Subject: Re: BUG #15912: The units of `autovacuum_vacuum_cost_delay` setting should be documented
Date: Thu, 24 Oct 2019 14:37:03 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
<[email protected]>
<[email protected]>
<[email protected]>
[ cc'ing pgsql-docs as well ]
Bruce Momjian <[email protected]> writes:
> I applied a modified version of this patch. I didn't backpatch it past
> PG 12 because earlier releases were just too different.
I happened to stumble across the effects of this patch while trying
to improve our explanation of statement_timeout. I follow the goal
of explaining what the default units are, but I really dislike the
way you did it:
+ Abort any statement that takes more than the specified duration
+ (defaults to milliseconds), starting from the time the command arrives at the server
from the client. ...
I think this is confusingly bad English, and it's poor exposition
because a minor detail (it must be pretty minor, if we got away
without mentioning it at all for years) is injected into the middle
of the basic statement of the variable's purpose. I think what we'd
be better off doing is to write a separate sentence mentioning the
units, in more or less the same way that we generally handle the
default value. In <[email protected]> I suggested
this revision for statement_timeout:
Abort any statement that takes more than the specified duration.
If <varname>log_min_error_statement</varname> is set
to <literal>ERROR</literal> or lower, the statement that timed out
will also be logged.
If the value is specified as a plain number, it is measured in
milliseconds by default.
A value of zero (the default) disables the timeout.
(I'm not quite sure whether the ending "by default" is worth writing
or not.)
Barring objections, I'll run around and make them all look like that.
regards, tom lane
view thread (7+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
Subject: Re: BUG #15912: The units of `autovacuum_vacuum_cost_delay` setting should be documented
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox