From dbe6f538a44120448f028d7e464d6b4d41bcdb9c Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 20 Jun 2007 18:31:39 +0000 Subject: [PATCH] Restrict deadlock_timeout to the range for which the implementation actually works sanely, viz not 0 and not more than INT_MAX/1000 (else TimestampTzPlusMilliseconds can overflow). Per discussion with Greg Stark. Since this is a superuser-only setting and there was not previously any big reason to change it, not worth back-patching. --- src/backend/utils/misc/guc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index 21b4d4482b..a7454d45ef 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -1173,7 +1173,7 @@ static struct config_int ConfigureNamesInt[] = GUC_UNIT_MS }, &DeadlockTimeout, - 1000, 0, INT_MAX, NULL, NULL + 1000, 1, INT_MAX/1000, NULL, NULL }, /* -- 2.39.5