pgsql: Limit values of archive_timeout, post_auth_delay, auth_delay.mil

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Limit values of archive_timeout, post_auth_delay, auth_delay.mil
Дата
Msg-id E1TaD9o-0004n4-7p@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Limit values of archive_timeout, post_auth_delay, auth_delay.milliseconds.

The previous definitions of these GUC variables allowed them to range
up to INT_MAX, but in point of fact the underlying code would suffer
overflows or other errors with large values.  Reduce the maximum values
to something that won't misbehave.  There's no apparent value in working
harder than this, since very large delays aren't sensible for any of
these.  (Note: the risk with archive_timeout is that if we're late
checking the state, the timestamp difference it's being compared to
might overflow.  So we need some amount of slop; the choice of INT_MAX/2
is arbitrary.)

Per followup investigation of bug #7670.  Although this isn't a very
significant fix, might as well back-patch.

Branch
------
REL8_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/8728fdce97e2012cb3715ddc294ab9e54967ef7c

Modified Files
--------------
src/backend/utils/misc/guc.c |    4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Limit values of archive_timeout, post_auth_delay, auth_delay.mil
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Limit values of archive_timeout, post_auth_delay, auth_delay.mil