diff options
author | Tom Lane | 2018-02-23 19:38:19 +0000 |
---|---|---|
committer | Tom Lane | 2018-02-23 19:39:17 +0000 |
commit | 8af87f411c151537b6e3315c2a191110c3fec494 (patch) | |
tree | db5bfcfe85812b1e99bbfc3a4cb177ff0e3c3fbb | |
parent | fe35cea7cf896574d765edf86a293fbc67c74365 (diff) |
Allow auto_explain.log_min_duration to go up to INT_MAX.
The previous limit of INT_MAX / 1000 seems to have been cargo-culted in
from somewhere else. Or possibly the value was converted to microseconds
at some point; but in all supported releases, it's just compared to other
values, so there's no need for the restriction. This change raises the
effective limit from ~35 minutes to ~24 days, which conceivably is useful
to somebody, and anyway it's more consistent with the range of the core
log_min_duration_statement GUC.
Per complaint from Kevin Bloch. Back-patch to all supported releases.
Discussion: https://postgr.es/m/[email protected]
-rw-r--r-- | contrib/auto_explain/auto_explain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/auto_explain/auto_explain.c b/contrib/auto_explain/auto_explain.c index d146bf4bc9..ea4f957cfa 100644 --- a/contrib/auto_explain/auto_explain.c +++ b/contrib/auto_explain/auto_explain.c @@ -78,7 +78,7 @@ _PG_init(void) "Zero prints all plans. -1 turns this feature off.", &auto_explain_log_min_duration, -1, - -1, INT_MAX / 1000, + -1, INT_MAX, PGC_SUSET, GUC_UNIT_MS, NULL, |