Re: Time to run initdb is mostly figure-out-the-timezone work - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Time to run initdb is mostly figure-out-the-timezone work
Date
Msg-id 20091218174904.GD4055@alvh.no-ip.org
Whole thread Raw
In response to Time to run initdb is mostly figure-out-the-timezone work  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Time to run initdb is mostly figure-out-the-timezone work  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> On current Fedora 11, there is a huge difference in initdb time if you
> have TZ set versus if you don't: I get about 18 seconds versus less than
> four.

Wow, I can reproduce this (11-12 secs when no TZ versus 5 when TZ is
defined).  I'd never noticed because I normally have TZ set; but yes I
agree that this is worthwhile.

I notice that most of the difference is system time ... I imagine we do
a lot of syscalls to guess the timezone.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Distinguish view and table problem
Next
From: "Kevin Grittner"
Date:
Subject: Re: Update on true serializable techniques in MVCC