Re: stat /etc/localtime 38000 times on startup?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: stat /etc/localtime 38000 times on startup?
Дата
Msg-id 26218.1136749643@sss.pgh.pa.us
обсуждение исходный текст
Ответ на stat /etc/localtime 38000 times on startup?  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> I just traced starting up a postmaster, and got over 38000 lines like this:
>    stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1267, ...}) = 0
> I assume it comes from the timezone library, but it seems highly 
> inefficient. Anyone know why we might get this?

glibc's strftime does that if you don't have a TZ value set in the
postmaster's environment.

http://archives.postgresql.org/pgsql-hackers/2005-10/msg00884.php
        regards, tom lane


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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: plperl vs LC_COLLATE (was Re: Possible savepoint bug)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Libpq COPY optimization