stat /etc/localtime 38000 times on startup? - Mailing list pgsql-hackers

From Andrew Dunstan
Subject stat /etc/localtime 38000 times on startup?
Date
Msg-id 43C11935.6060301@dunslane.net
Whole thread Raw
Responses Re: stat /etc/localtime 38000 times on startup?  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: plperl vs LC_COLLATE (was Re: Possible savepoint bug)
Next
From: "Alon Goldshuv"
Date:
Subject: Libpq COPY optimization