pgsql: Force the TZ environment variable to be set during initdb.

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Force the TZ environment variable to be set during initdb.
Date: 2009-12-18 18:45:50
Message-ID: 20091218184550.B238B753FB7@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Force the TZ environment variable to be set during initdb. This is to
short-circuit the rather expensive identify_system_timezone() procedure,
which we have no real need for during initdb since nothing done here depends
on the timezone setting. Since we launch quite a few standalone backends
during the initdb sequence, this adds up to a significant savings, and seems
worth doing to save developer time even though it will hardly matter to end
users. Per my report today on pgsql-hackers.

Modified Files:
--------------
pgsql/src/bin/initdb:
initdb.c (r1.178 -> r1.179)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/initdb/initdb.c?r1=1.178&r2=1.179)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2009-12-18 21:28:42 pgsql: Install server-side language PL/pgSQL by default.
Previous Message User Bmomjian 2009-12-17 22:41:16 pg-migrator - pg_migrator: Remove STRINGIFY; not needed.