stat /etc/localtime 38000 times on startup?

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: stat /etc/localtime 38000 times on startup?
Date: 2006-01-08 13:52:53
Message-ID: 43C11935.6060301@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


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?

cheers

andrew

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alon Goldshuv 2006-01-08 14:00:04 Libpq COPY optimization
Previous Message Andrew Dunstan 2006-01-08 13:33:40 Re: plperl vs LC_COLLATE (was Re: Possible savepoint bug)