Re: configuring timezone

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: configuring timezone
Дата
Msg-id 15374.1360188682@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: configuring timezone  (Igor Neyman <ineyman@perceptron.com>)
Ответы Re: configuring timezone  (Igor Neyman <ineyman@perceptron.com>)
Список pgsql-general
Igor Neyman <ineyman@perceptron.com> writes:
> Going back to the reason for this change in Release Notes:
> "This avoids expensive time zone probes during server start."
> How expensive?

The time zone probe logic involves reading every file under
/usr/share/zoneinfo (or wherever you have the Olson tz database
installed).  There are a couple thousand of those in a typical Linux
installation.  In a cold-boot situation where none of that data is
already swapped in, it's not unusual for this to take five seconds or
more.  Now that may or may not seem like a lot, but it's more than
enough to cause many startup scripts to conclude that the postmaster has
failed.  The hacks we'd built up to deal with this eventually became
insupportable.

We're not going back.  I suggest you consider ways to adjust your
server-migration process.

            regards, tom lane

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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: configuring timezone
Следующее
От: Terence Ferraro
Дата:
Сообщение: Re: configuring timezone